Skip Menu |

This queue is for tickets about the Time-modules CPAN distribution.

Report information
The Basics
Id: 62065
Status: resolved
Priority: 0/
Queue: Time-modules

People
Owner: Nobody in particular
Requestors: kris [...] shannon.id.au
Cc:
AdminCc:

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



Subject: parsedate of a time only string ignores the GMT option
Time::ParseDate::parsedate("6am", GMT => 1); returns 6am localtime not 6am GMT. I've tried multiple variations to try to force it but have ended up patching locally (attached)
Subject: ParseDate.patch
--- a/Time/ParseDate.pm 2008-02-08 12:33:44.000000000 +1100 +++ b/Time/ParseDate.pm 2010-10-12 17:15:29.917668018 +1100 @@ -255,7 +255,7 @@ } print "relative date\n" if $debug; - $jd = local_julian_day($now); + $jd = $options{GMT} ? gm_julian_day($now) : local_julian_day($now); print "jd($now) = $jd\n" if $debug; $jd += $rd; } else {
Fixed in the next release. Thanks for the patch.