The following is beyond my (limited) knowledge of Perl:

I have installed DateTime-0.41and I have been able to create an error by
calling strftime with a '%z' in the input string, but it seems to calculate
the UTC offset correctly. The strange part is that the error is only showing
up in my error logs and not if I try invoking the test script via the
commandline:

Can't call method "isa" without a package or object reference at
/usr/lib/perl5/site_perl/5.8.5/DateTime/TimeZone.pm line 482

The line in question:

shift if eval { $_[0]->isa('DateTime::TimeZone') };

I can only assume that the item passed is undef, so the eval fails. A basic
test that shows the error:

my $now = DateTime->now();
$now->set_time_zone("Europe/London");
print qq{GMT: }. $now->strftime("%Y-%m-%d %H:%M:%S (GMT %z)");

I'm using Perl v5.8.5 for x86_64-linux-thread-multi with mod_perl

Thanks in advance!
Kat

Reply via email to