7 ms·
Another consequence of this is that JS Date objects don't understand the concept of timezones, and only allows you to output dates in either the client timezon
by mediumdeviation 8y ago
Another consequence of this is that JS Date objects don't understand the concept of timezones, and only allows you to output dates in either the client timezone or UTC. This makes it extremely hard to, for example, display the arrival time of a flight in the destination timezone.
Intl.DateTimeFormat[1] is a godsend for this.
[1]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...