Skip Menu |

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

Report information
The Basics
Id: 57196
Status: resolved
Priority: 0/
Queue: Date-Manip

People
Owner: Nobody in particular
Requestors: ubuntu [...] helmut-bender.de
Cc:
AdminCc:

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



Subject: Date_SetDateField broken
Date: Tue, 4 May 2010 12:25:39 +0200
To: bug-Date-Manip [...] rt.cpan.org
From: "Helmut A. Bender" <ubuntu [...] helmut-bender.de>
Hi, I'm using Ubuntu 10.04 which uses Date::Manip 6.05; but the bug seems to be there in 6.11, too. When I try to set the day with Date_SetDateField($date, 'd', $day) it sets the hour, not the day. It seems in Date::Manip::Date::set there are the wrong indices used: [code] when (['y','m','d','h','mn','s']) { my %tmp = qw(y 0 m 1 w 2 d 3 h 4 mn 5 s 6); [/code] In 6.05 it's at line 2265. 'w' seems not to be used any more, so the rest is wrong. -- Gruß Helmut A. Bender
Sorry about that. It'll be fixed in the next release.