Skip to content

Instantly share code, notes, and snippets.

@channprj
Created December 20, 2019 00:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save channprj/49f0a7a932ad4ac6655a26288e835d21 to your computer and use it in GitHub Desktop.
Save channprj/49f0a7a932ad4ac6655a26288e835d21 to your computer and use it in GitHub Desktop.
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