Hi Jason,

Jason Bodnar wrote:
> DateTime complains that PST is ambiguous so I tried replacing PST with
> 'US/Pacific', 'America/Los_Angeles' and 'PST8PDT' but DateTime says
> it doesn't recognise [sic] any of those. So what timezone label will
> DateTime accept for Pacific Standard Time?

Odd, America/Los_Angeles should work.

use strict;
use warnings;
use DateTime;

my $dt = DateTime->now( time_zone => 'America/Los_Angeles');

print $dt;

prints 2005-11-04T14:04:52

You may want to include a small test script
which demonstrates the error.

Hope this helps

Ron Hill



Reply via email to