Skip Menu |

This queue is for tickets about the DateManip CPAN distribution.

Report information
The Basics
Id: 17664
Status: resolved
Priority: 0/
Queue: DateManip

People
Owner: Nobody in particular
Requestors: steve.esson [...] esa.int
Cc:
AdminCc:

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



Subject: Datecalc adds an extra hour
adding 30 seconds to a standard ISO time causes "DateCalc" to add 1hr 0mins 30secs. $ perl -e'use Date::Manip;$d="2001-09-10T09:28:30.17Z";$ed=DateCalc ($d,"+30 seconds",\$err);print "[$d][$ed]\n";' [2001-09-10T09:28:30.17Z][2001091010:29:00] $ perl -v This is perl, v5.8.4 built for i386-linux-thread-multi
Without knowing the timezone that you are in, I cannot tell if there's a bug or not, but it is working fine for me. The date entered is in the military "Z" timezone (or +0000). Adding 30 seconds to that returns a time in the current timezone. In my case (4 hours off GMT), it returns a time that is 4:00:30 off from the time entered... and that's the correct result.