In Windows my time zone is set to UTC+2:00 Jerusalem
But several websites think I'm in UTC. And I see that Chrome reports my timezone as UTC. When I try this in my console
Intl.DateTimeFormat().resolvedOptions().timeZone
I get "UTC"
Though I can't for the life of me find any setting in Chrome that keeps it's own timezone.
I'm using WIndows 10. Here's the navigator.userAgent
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36"
If I run tzutil /g
in the command line, I get:
Israel Standard Time
There are extensions that let me change the timezone. But I'd rather solve the issue. So I can help other clients with similar issues.
UPDATE
It seems that this isssue happens only in pages run from visual studio via IIS
. If I check the timezone in regular gmail or wikipedia etc then the tiemzone is correct.
But in a browser that was opened from VS
, when running my asp.net site, the timezone always shows UTC. Even if in said browser I will open wikipedia. Th browser somehow gets "set" to utc.
Where can this be fixed?
Thanks!
navigator.userAgent
from the browser please? Also can you supply the value oftzutil /g
from the Windows command line? Thanks. – Matt Johnson-Pint