If TZ variable is set on Windows, Chrome shows incorrect time zone
Reported by da...@code.davidpcaldwell.com, Apr 30 2012
Chrome Version : 18.0.1025.162 OS Version: 6.1 (Windows 7, Windows Server 2008 R2) URLs (if applicable) : Other browsers tested: Add OK or FAIL after other browsers where you have tested this issue: Safari 5: Firefox 4.x: IE 7/8/9: What steps will reproduce the problem? 1. Set the TZ environment variable to a string like "America/New_York" 2. Run Chrome 3. Go to debugging console; type "new Date()" What is the expected result? Mon Apr 30 2012 16:39:36 GMT-0400 (Eastern Daylight Time) What happens instead? Mon Apr 30 2012 21:38:50 GMT+0100 (Eastern Standard Time) ... which makes little sense. If I set the TZ variable to nonsense, like "foo," I get something different but also nonsensical: Mon Apr 30 2012 20:42:46 GMT+0000 (Eastern Standard Time) Please provide any additional information below. Attach a screenshot if possible. UserAgentString: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.162 Safari/535.19 Cygwin, for example, sets the TZ environment variable for UNIX compatibility reasons, so Chrome functions incorrectly when launched from a Cygwin process that has not unset TZ.
Mar 10 2013,
May 22 2013,
This works on Firefox on Windows as well as it does on Chrome on Mac OS X (and possibly Linux).
Aug 25 2015,
Archiving unconfirmed issues, which have not been modified (commented on, updated, etc...) in over 2 years.
Sign in to add a comment