Pro tip: While in Java getTime() on a date object returns the UTC milliseconds since 1st of January 1970, in JavaScript it returns the timezone specific value. If you want to get the UTC timestamp, you have to call Date.UTC()

Sign in to participate in the conversation
Sheogorath's Microblog

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!