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 {