remiah has asked for the wisdom of the Perl Monks concerning the following question:
I tried to use DateTime::Format::Manip. But it fails on 01conversions.t test script. Google showed me there are men who met the same situation but I couldn't get clue to solve this. It fails on first test and below is the output.
not ok 1 - Parse Date 'March 23, 2003' # Failed test 'Parse Date 'March 23, 2003'' # at 01conversions.t line 73. # got: '2003-03-22T09:00:00.000000000 EST # ' # expected: '2003-03-23T00:00:00.000000000 EST # '
When it tries to parse date string 'March 23, 2003', parse_datetime subroutine seems to try to ajust hour from 0 to 9. May be this is because initial TimeZone and EST differs at set_time_zone subroutine at DateTime.pm, but I couldn't dig it deeper.
I wonder someone at this monastery has some clue to this problem.
I installed it from cpanplus, version of module is "DateTime-Format-DateManip-0.04". perl 5.12.2, FreeBSD 8.2
Regards.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DateTime::Format::Manip fails test script
by Anonymous Monk on Apr 18, 2012 at 08:34 UTC | |
by remiah (Hermit) on Apr 18, 2012 at 10:16 UTC |