Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Some with JavaScript timezone specific date times. My solution is to generally favour https://www.npmjs.com/package/@date-fns/utc so that my code works the same without any effort in any timezone.


The trouble is when you have to deal with timezone-aware business logic. `date-fns-tz` does exist, but the amount of brain contortions required to keep track of everything is frankly exhausting, not to mention error-prone.

Suffice it to say that I'm waiting with bated breath on the Temporal API (https://github.com/tc39/proposal-temporal).


Yep, I am in the Zulu habit.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: