Subject: | TimeZoneCatalog.pm does not contain AKST9AKDT |
The valid time zone identifier AKST9AKDT (for Alaska) does not exist in
TimeZoneCatalog.pm, which causes this simple test:
perl -MData::Dumper -MDateTime -MDateTime::TimeZone -e '$tz =
"AKST9AKDT"; $a = DateTime::TimeZone->new("name" => $tz); print
&Dumper(\$a), "\n"'
to fail. With this simple patch:
--- ./TimeZoneCatalog.pm 2006-02-08 12:05:13.000000000 -0500
+++ DateTime/TimeZoneCatalog.pm 2006-02-07 17:55:00.000000000 -0500
@@ -793,6 +793,7 @@
%DateTime::TimeZone::LINKS =
(
+ 'AKST9AKDT' => 'America/Anchorage',
'Africa/Timbuktu' => 'Africa/Bamako',
'America/Argentina/ComodRivadavia' => 'America/Argentina/Catamarca',
'America/Atka' => 'America/Adak',
that same test will now return a large hash. The diff was determined by
comparing the version of TimeZoneCatalog.pm that Debian distributes
with that from Gentoo. Apparently, Debian patches that file themselves.
I discovered this because we have a customer in Alaska, and code to
display the proper local time on their web interface works on all the
Debian boxes in the office, but did not on my Gentoo box.