Skip to content

Instantly share code, notes, and snippets.

@yussan
Last active October 6, 2021 13:19
Show Gist options
  • Save yussan/2158e3f55253ffed9d127786d654c41a to your computer and use it in GitHub Desktop.
Save yussan/2158e3f55253ffed9d127786d654c41a to your computer and use it in GitHub Desktop.
Get Current Time Based On Active UTC
const now = new Date(now.getTime() - now.getTimezoneOffset() * 60000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment