houseabsolute / DateTime-TimeZone

Time zone object base class and factory
https://metacpan.org/release/DateTime-TimeZone/
Other
9 stars 25 forks source link

Tweaks to allow reusing a previously-compiled database #53

Closed Hugmeir closed 1 year ago

Hugmeir commented 1 year ago

Ulterior motive: This allows generating DateTime::TimeZone using the global-tz fork of olsondb (https://github.com/JodaOrg/global-tz/tree/main).

This just adds two minor tweaks to the scripts in the tools directory -- one to allow skipping the compilation step (if --no-compile is given as an option), and one to allow for a slight difference in the global-tz generated files, which has lines like the following, which don't include the gmtoff parameter.

America/Argentina/Cordoba  Fri Dec 13 20:45:52 1901 UTC = Fri Dec 13 16:29:04 1901 CMT isdst=0
Hugmeir commented 1 year ago

Bah actually, the gmtoff being missing breaks the tests, so closing this until I have that patched.