Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
The BrowserInfoPage and ClientProperties currently give the wrong result for the timezone. It's hard to decide on what to fix, but I'm settling for fixing the javascript side. JavaScript's 'Date().getTimezoneOffset()' gives the time to be substracted from UTC and is thus the opposite of what you would (or at least I would) expect from that function. For instance, the offset for Seattle currently gets +8, while the time zone is -8. So... in order to let ClientProperties stay the same in case clients depend on it's behavior, I'll make the fix in BrowserInfoPage, changing from '(new Date().getTimezoneOffset() / 60)' to '(new Date().getTimezoneOffset() / -60)'.