Skip Menu |
 

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

Report information
The Basics
Id: 53340
Status: open
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)



MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 2144
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
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-17369-1329029996-1327.53340-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 131
Download (untitled) / with headers
text/plain 131b
I believe this was an issue with DateTime.pm that has long ago fixed. Is this problem still reproducable with the current release?


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.