Created
November 30, 2012 19:57
-
-
Save Sinetheta/4178154 to your computer and use it in GitHub Desktop.
JS: current timezone offset
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var currentTimeZoneOffsetInHours = (new Date()).getTimezoneOffset()/60; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment