Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the DateTime CPAN distribution.

Report information
The Basics
Id: 33695
Status: resolved
Priority: 0/
Queue: DateTime

People
Owner: Nobody in particular
Requestors: duncan_j_ferguson [...] yahoo.co.uk
jesse [...] bestpractical.com
manon [...] manon.de
Cc:
AdminCc:

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



Subject: Test case failure in leap year
Date: Fri, 29 Feb 2008 08:45:51 +0000
To: bug-DateTime [...] rt.cpan.org
From: Duncan Ferguson <duncan_j_ferguson [...] yahoo.co.uk>
$ date Fri Feb 29 08:42:43 GMT 2008 $ perl -v This is perl, v5.8.8 built for i486-linux-gnu-thread-multi $ uname -a Linux server 2.6.18-6-k7 #1 SMP Sun Feb 10 22:16:15 UTC 2008 i686 GNU/ Linux DateTime-0.39.tar.gz =========== t/17set_return..........Invalid day of month (day = 29 - month = 2) at t/17set_return.t line 16 # Looks like your test died before it could output anything. dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-7 Failed 7/7 tests, 0.00% okay ===========
Subject: Make test fails at the 29th of Feb (Today)
Date: Fri, 29 Feb 2008 15:26:40 +0100
To: bug-DateTime [...] rt.cpan.org
From: Manon Goo <manon [...] manon.de>
*Dear DateTime developers, Thanks for the great software, it seams that **DateTime* has a bug handling leapyears in the testscripts * Yours Manon Goo *t/16truncate............ok t/17set_return..........Invalid day of month (day = 29 - month = 2) at t/17set_return.t line 16 # Looks like your test died before it could output anything. t/17set_return..........dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-7 Failed 7/7 tests, 0.00% okay t/18today...............ok t/19leap_second.........ok t/20infinite............ok t/21bad_params..........ok -- Manon Goo Dembach Goo Informatik GmbH & Co KG Untersachsenhausen 33 D-50667 Köln Tel: +49 221 801483 0 Mobil: +49 177 8091974 Fax: +49 221 801483 20 Email: manon@dg-i.net Amtsgericht Köln HRA 22794, UST ID: DE242 159 527 Geschäftsführer: Manon Goo, Andreas Dembach Haftende Gesellschafterin: Dembach Goo Verwaltungs GmbH
Download signature.asc
application/pgp-signature 887b

Message body not shown because it is not plain text.

On Fri Feb 29 09:27:39 2008, manon@manon.de wrote: Show quoted text
> *Dear DateTime developers, > > Thanks for the great software, it seams that **DateTime* has a bug > handling leapyears in the testscripts > * > > Yours Manon Goo > > *t/16truncate............ok > > t/17set_return..........Invalid day of month (day = 29 - month = 2) > at t/17set_return.t line 16 > # Looks like your test died before it could output anything. > t/17set_return..........dubious > > Test returned status 255 (wstat 65280, 0xff00) > DIED. FAILED tests 1-7 > Failed 7/7 tests, 0.00% okay > t/18today...............ok > > t/19leap_second.........ok > > t/20infinite............ok > > t/21bad_params..........ok >
There appears to be a duplicate of this bug: #33695. A fix that seems to work is to change the year in line 10 of t/17set_return.t to 1884 (or any other leap year; this was chosen as it was close to the original year chosen) so that the use of the current day and month does not cause an error.
Subject: Install fails on leap-days. Please fix before 2012 (via mattb on twitter)
Date: Fri, 29 Feb 2008 16:37:59 -0500
To: bug-datetime [...] rt.cpan.org
From: Jesse Vincent <jesse [...] bestpractical.com>
Proxied from twitter: mattb bad day for date code. trying to install perl's DateTime from CPAN today, test 17 fails on "Invalid day of month (day = 29 - month = 2)" about 9 hours ago from twitterrific Icon_star_empty reply to mattb
Download PGP.sig
application/pgp-signature 186b

Message body not shown because it is not plain text.