Created
December 20, 2019 00:39
-
-
Save channprj/49f0a7a932ad4ac6655a26288e835d21 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
const tzOffset = (new Date()).getTimezoneOffset() * 60000 | |
const now = new Date(Date.now() - tzOffset).toISOString(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment