Skip to content

Instantly share code, notes, and snippets.

@jpluimers
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpluimers/8933710 to your computer and use it in GitHub Desktop.
Save jpluimers/8933710 to your computer and use it in GitHub Desktop.
Chrome does not pick up on time zone changes until a new tab is opened or the browser restarted.
/// Google Chrome:
var date = new Date();
// undefined
date;
// Tue Feb 11 2014 07:09:19 GMT-0500 (UTC)
date.toUTCString();
// "Tue, 11 Feb 2014 12:09:19 GMT"
/// WebKit jsc on the console:
var date = new Date();
// undefined
date;
// Tue Feb 11 2014 13:10:49 GMT+0100 (CET)
>>> date.toUTCString();
// Tue, 11 Feb 2014 12:10:49 GMT
// Chrome after pressing Command-Q, then restarting it:
var date = new Date();
// undefined
date;
// Tue Feb 11 2014 13:24:31 GMT+0100 (CET)
date.toUTCString();
// "Tue, 11 Feb 2014 12:24:31 GMT"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment