js-joda / js-joda-timezone

!This package is deprecated!
Other
27 stars 4 forks source link

How to load own tzdb data? #72

Closed jrsearles closed 5 years ago

jrsearles commented 5 years ago

I see that there is an "empty" build of this library without tzdb data loaded. I've stripped out data from moment-timezone to only the time zones I will be supporting, however it's not clear to me how to use the empty build and load my own dataset and bootstrap the library. Any tips?

jrsearles commented 5 years ago

I think i figured it out. Looks like methods are added to ZoneRulesProvider (loadTzdbData) that can be used to load customized data.

pithu commented 5 years ago

Exactly, that's the way to do it