logoalt Hacker News

mulmenyesterday at 11:14 PM1 replyview on HN

The issue here seems to be that the behavior of tzdata (correctly) changes over time. Can all this complexity be avoided by storing the tzdata version in the timestamp itself so it can decoded with the same rules?


Replies

dqvtoday at 1:38 AM

It's just a different kind of complexity and one that requires having a library that can arbitrarily load different versions of tzdata.

I've been thinking about it for a while though - a time zone conversion library that also accepts an additional "tzdata_version" argument.