Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: mrandtx [...] yahoo.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in:
  • 6.05
  • 6.07
Fixed in: (no value)



Subject: Multiple applications reporting that UnixDate is broken
Multiple applications reporting that UnixDate is broken when using 6.05 or 6.07: #!/usr/bin/perl use Date::Manip; print &UnixDate("today","It is now %T on %b %e, %Y.\n"); when the above is run, it gives: It is now 00:00:00 on May 3, 2010. This worked in 5.54 (the version distributed in Ubuntu 9.10). Since this problem is occurring in a released version of Ubuntu (10.04), it would be nice if we could patch it against 6.05. Could you provide such a patch? If this isn't patchable, could you suggest the best work-around for the applications? Thank you!
Sorry, but this is not a bug. If you change the word 'today' to 'now', it will work. From the Changes5to6 manual: The words "today", "tomorrow", and "yesterday" in 5.xx referred to the time now, 24 hours in the future, and 24 hours in the past respectively. As of 6.00, these are treated strictly as date strings, so they are the current day, the day before, or the day after at the time 00:00:00. The string "now" still refers to the current date and time. Sorry for the confusion.