Skip Menu |

This queue is for tickets about the DateTime-Format-ISO8601 CPAN distribution.

Report information
The Basics
Id: 53340
Status: resolved
Priority: 0/
Queue: DateTime-Format-ISO8601

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

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



Hello and Thank you for DateTime::Format::ISO8601 0.06,

  Just wanted to let you know in the year 2010, 4 tests in t/02_examples.t are failing (for me), I also noticed recent failures reported here:

    http://www.cpantesters.org/distro/D/DateTime-Format-ISO8601.html#DateTime-Format-ISO8601-0.06

t/02_examples.t ....... 1/174
Show quoted text
#   Failed test at t/02_examples.t line 231.
#          got: '2015'
#     expected: '2005'

Show quoted text
#   Failed test at t/02_examples.t line 239.
#          got: '2015'
#     expected: '2005'

Show quoted text
#   Failed test at t/02_examples.t line 247.
#          got: '2015'
#     expected: '2005'

Show quoted text
#   Failed test at t/02_examples.t line 254.
#          got: '2015'
#     expected: '2005'
# Looks like you failed 4 tests of 174.


My "fix" is:


t/02_examples.t ====
227a228,230
Show quoted text
> my $year          = (localtime())[5] + 1900;
> my $expected_year = substr($year,0,3) . '5';
>
231c234
<     is( $dt->year, '2005' );
---
Show quoted text
>     is( $dt->year, $expected_year );
239c242
<     is( $dt->year, '2005' );
---
Show quoted text
>     is( $dt->year, $expected_year );
247c250
<     is( $dt->year, '2005' );
---
Show quoted text
>     is( $dt->year, $expected_year );
254c257
<     is( $dt->year, '2005' );
---
Show quoted text
>     is( $dt->year, $expected_year );

Cheers,
Peter (Stig) Edwards
I believe this was an issue with DateTime.pm that has long ago fixed. Is this problem still reproducable with the current release?