Date_SetDateField broken

Bug #575029 reported by Helmut A. Bender
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libdate-manip-perl
Unknown
Unknown
libdate-manip-perl (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: libdate-manip-perl

Using Lucid Lynx with libdate-manip-perl-6.05

If you try to set eg the day of a date with Date_SetDateField($date, 'd', $day) the hour is set instead.

It seems in Date::Manip::Date line 2265 the %tmp is set incorrectly; the indices seem to be wrong. I don't know if there were a week field in former times, but there seem to be none at the moment.

[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]

'w 2' is not used any more... but there is no docu about the right indices...

Revision history for this message
MarcRandolph (mrand) wrote :

Ultimate upstream appears to confirm that it is broken and will be (or has been) fixed, but doesn't point to a patch or release:
https://rt.cpan.org/Public/Bug/Display.html?id=57196

Changed in libdate-manip-perl (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.