houseabsolute / DateTime-TimeZone

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

Etc/UTC[+-]1 - 12 Timezones not Linked #25

Closed adamharrison closed 4 years ago

adamharrison commented 6 years ago

Hi,

Seems like only Etc/GMT+0 and Etc/UTC+0 are linked as timezones in the module; but it looks like in the official database they are indeed defined. Is there any chance of getting these into the module?

autarch commented 6 years ago

I think I never bothered with this because the module already supports this pretty easily by passing a zone "name" like 01:00 or -08:00.

I think it'd be fairly easy to patch the constructor to handle the other etc zones as a special case and return an OffsetOnly object. Patches welcome.

autarch commented 4 years ago

Released in 2.38.