Subject: | Using Etc/GMT-1 or Etc/GMT+1 and similar timezones |
Date: | Wed, 21 Sep 2016 12:48:50 +0200 |
To: | bug-Time-Zone-Olson [...] rt.cpan.org |
From: | Andreas Guldstrand <andreas.guldstrand [...] gmail.com> |
These timezones exist on my system and I would like to use
Time::Zone::Olson to parse them, but whenever I try I get errors.
The first error I get is when I try to use Etc/GMT+1 like so:
perl -MTime::Zone::Olson -E '
say Time::Zone::Olson->new({timezone => "Etc/GMT+1"})->local_offset(time)'
Output:
'Etc/GMT+1' does not have a valid format for a TZ timezone at -e line 1.
It's as if it can't find the file even though I can see it's there.
If I try to use Etc/GMT-1 I get a slightly different error:
perl -MTime::Zone::Olson -E '
say Time::Zone::Olson->new({timezone => "Etc/GMT-1"})->local_offset(time)'
Output:
Failed to parse the tz defintion of <GMT-1>-1 from
/usr/share/zoneinfo/Etc/GMT-1 at -e line 1.
I really like what this module is doing, so if I can be of any help
don't hesitate to ask.
Thank you / Andreas