Subject: | DateTime timezone for SuSE Linux 8.1 |
DateTime 0.1705
Perl 5.8.0
SuSE 8.1
As far as I can see from looking at the code the local time zone is obtained from looking at /etc/sysconfig/clock on this OS. On my system the file contains the line TIMEZONE="GMT0" rather than ZONE="GMT0" and this caused one of the tests for Astro::Sunrise to fail because it couldn't determine the local time zone.
I think it is easy to fix by changing the line in sub _read_etc_sysconfig_clock in Local.pm to read
next unless /ZONE=/;
But I don't have the skill to determine if this a bug in DateTime or a misconfiguration in SuSE (although I used their sys config GUI to set everything up initially)
I have changed Locla.pm as above on my system and rerun the tests for DateTime::TimeZone, DateTime, and Astro::Sunrise - all o.k.
Pete