Hi Jason,

Jason Bodnar wrote:
> #!/usr/bin/perl
> 
> use DateTime::Format::Strptime;
> my $parser = new DateTime::Format::Strptime(pattern => '%d-%b-%Y
>                                             %H:%M %Z', on_error =>
> 'croak'); my $dt = $parser->parse_datetime("30-Oct-2005 01:04
> America/Los_Angeles"); __END__  

You are using the %Z as the timezone, I thought that was for
output only. (Rick needs to comment on that)

> 
> $ perl test.pl
> I don't recognise the timezone America. at test.pl line 6
> 
> Seems to be a problem specifically with Strptime because your example
> worked for me. I guess Strptime doesn't know about the same TZs as
> DateTime.  

Reply via email to