New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 815320 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

getTimezoneOffset() returns incorrect value after changing system timezone

Reported by swi...@gmail.com, Feb 23 2018

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36

Steps to reproduce the problem:
1. Run `new Date().getTimezoneOffset()` // correct value
2. Change your system time zone
3. Run `new Date().getTimezoneOffset()` // returns 0
4. Restart chrome
5. Run `new Date().getTimezoneOffset()` // returns correct value again

What is the expected behavior?
I expect getTimezoneOffset() to always return the correct offset from UTC for the user's computer.

What went wrong?
If a user changes their timezone without restarting Chrome, the getTimezoneOffset() starts returning 0 no matter what the timezone is changed to. Even if you change it back to the original value, JavaScript still thinks offset is 0.

Did this work before? N/A 

Chrome version: 64.0.3282.167  Channel: n/a
OS Version: OS X 10.13.2
Flash Version:
 

Comment 1 by swi...@gmail.com, Feb 23 2018

Some further testing shows this affects all time functions. Running `new Date()` returns incorrect local time.
Components: -Blink Blink>JavaScript>Internationalization
Labels: Needs-Triage-M64
Cc: krajshree@chromium.org
Labels: Triaged-ET Needs-Feedback
Unable to reproduce the issue on mac 10.13.3 using chrome reported version #64.0.3282.167 and latest canary #66.0.3355.0.

Attached a screen cast for reference.

Following are the steps followed to reproduce the issue.
------------
1. Ran `new Date().getTimezoneOffset()`
2. Got correct value.
3. Changed system time zone
4. Again ran `new Date().getTimezoneOffset()`
5. Got correct value without restarting.

swizec@ - Could you please check the issue on latest canary #66.0.3355.0 by creating a new profile without any apps and extensions and please let us know if the issue still persist or not.

Thanks...!!
815320.mp4
957 KB View Download
Status: WontFix (was: Unconfirmed)
Mac triage: WontFix old issue without feedback or repro.

Sign in to add a comment