Skip Menu |

This queue is for tickets about the Class-Date CPAN distribution.

Report information
The Basics
Id: 41965
Status: resolved
Priority: 0/
Queue: Class-Date

People
Owner: Nobody in particular
Requestors: ogloblin [...] mail.ru
Cc:
AdminCc:

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



Class::Date with -DateParse parameter incorrectly parsed dates like '2008-12-23T10:56:03.000Z' but should do it. Code, which reproduce the bug. use Class::Date qw (-DateParse); use Date::Parse; my $d = '2008-12-23T10:56:03.000Z'; # try to use -DateParse feature print Class::Date->new($d) . "\n"; # directly call Date::Parse method print Class::Date->new(str2time($d)) . "\n"; Output: 2008-12-23 00:00:00 2008-12-23 16:56:03 Bug reproduced on 2 platforms 1) Windows 2003 perl v5.8.8 built for MSWin32-x86-multi-thread 2) Linux 2.6.3-7mdk perl v5.8.3 built for i386-linux-thread-multi