Last active
December 18, 2015 14:19
-
-
Save calvinchoy/5796573 to your computer and use it in GitHub Desktop.
JS - Date browser fix
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
//Date fix with some old browsers | |
if (!Date.now) { | |
Date.now = function() { | |
return new Date().valueOf(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment