Subject: | METDST time zone unknown |
I found that the function tz_offset() in module Time::Zone.pm (version 2.22) could not handle time a zone name like:
METDST (like used for HPUX, AIX systems, which is middle european time, daylight saving)
The problem is that some Unix systems return the name of the time zone when using the %z argument in the posix call to strftime (see also manual pages for strftime), similar to %Z argument. Some other Unix platforms do not support %z and let that argument untouched, and Linux/GNU systems has a different meaning for %z, i.e. the difference of time compared to GMT.
Can you please add metdst in @dstZone the hash table as recognized zone in Zone.pm (I assume that METDST is similar to MEST and CEST)
perl version=5.8.0
OS: AIX4.3.3, HPUX11.0 and probably others who return METDST in (posix)strftime()
testscript:
require Time::Zone;
use POSIX 'strftime';
$diff = Time::Zone::tz_offset("METDST");
print "Diff: $diff\n";