Code that exhibits the problem:
--
#!/usr/local/bin/perl -w
use strict;
use DateTime;
use DateTime::TimeZone;
my $dt = DateTime->new(year => 2003, month => 6, time_zone => "America/New_York");
my $short = DateTime::TimeZone->short_name_for_datetime($dt);
print "$short\n";
--
The error:
--
Can't use string ("DateTime::TimeZone") as a HASH ref while "strict refs" in use at
/usr/lib/perl5/site_perl/5.8.0/DateTime/TimeZone.pm line 287.
--
On a related note, while trying to chase this problem I noticed that
DT::TZ->span_for_datetime() compares $type to "UTC" to determine $end,
but all of the callers are passing in "utc".
-ben