Bug 121317 - Webkit caches the timezone, so changing it in the OS results in the localtime not changing
Summary: Webkit caches the timezone, so changing it in the OS results in the localtime...
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-13 13:16 PDT by Brandon Andrews
Modified: 2013-09-13 13:16 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brandon Andrews 2013-09-13 13:16:46 PDT
I tested this in Ubuntu with webkit (running in node-webkit).

If you start an instance of webkit and use javascript to output the time it'll be the current OS time. If you then change the timezone of the OS and query again the localtime will not change since webkit does not track if the OS timezone changes. If you restart webkit then it loads in the current timezone and everything works fine until the timezone is changed again.

So webkit should listen for changes to the timezone in the OS and automatically update its local cache of the timezone so that the localtime is always accurate when called.