Created
July 18, 2013 03:37
-
-
Save Zyber17/6026541 to your computer and use it in GitHub Desktop.
Take that, Node.
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
fixDate = (wrongDate) -> | |
date = new Date(wrongDate) | |
date.setMinutes date.getMinutes() + new Date().getTimezoneOffset() | |
return date |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment