Created
November 30, 2018 02:50
-
-
Save atumn/d50b44b80d863a97406e59f92f99e357 to your computer and use it in GitHub Desktop.
This file contains 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
function now() { | |
let date = new Date() | |
return new Date(date.getTime() - (date.getTimezoneOffset() * 60000)).toISOString().replace('T', ' ').replace(/\..+/, '') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment