Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the DateTime-TimeZone CPAN distribution.

Report information
The Basics
Id: 44854
Status: resolved
Priority: 0/
Queue: DateTime-TimeZone

People
Owner: Nobody in particular
Requestors: perl [...] evancarroll.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: TimeZone abbreviation are ambigious
I know it says these are ambiguous in docs, but how come there isn't an API to tell when they are ambiguous and not? Using Moose, I can't set up a type coercion that fallsback from a failed attempt at DateTime::TimeZone unless I know the attempt is failed. #returns -5 which is the EST for en_US perl -MDateTime::TimeZone -E'use XXX; say DateTime::TimeZone->new(name=>"EST")->{spans}[0][DateTime::TimeZone::OFFSET]/60/60' There are lots of EST's though http://www.timeanddate.com/library/abbreviations/timezones/