spencermountain / spacetime

A lightweight javascript timezone library
http://spacetime.how/
Other
3.97k stars 185 forks source link

How to get tzdb version? #350

Open michaelstewarti opened 1 year ago

michaelstewarti commented 1 year ago

Is there a way to get the current tzdb version used by the library so I can store that along my dates, so that in case something changes I can just do the adjustments?

spencermountain commented 1 year ago

hey michael, this is good idea. I will support this in the next version, which can pin specific tzdb versions. I am currently using local tzinfo data, which gets updated whenver osx does, so it's a little sloppier. cheers

ZainGulbaz commented 11 months ago

Hi @spencermountain Can I work on this enhancement?

spencermountain commented 11 months ago

Hey Zain, that's a great idea. You can see the script I use right now which pulls the data from local /usr files. It's pretty crappy and I've been trying to improve it for some time. Any help is welcomed!