All I want is simple "local time" date time manipulation without having to deal with timezones.

However, as illustrated below, I'm getting some weird (GMT?) results. Is this correct behavior? I'm using stock Red Hat 9 perl 5.8.0.

=====================
use DateTime;

print "DATE: " . `date`;
print "DTNOW: " . DateTime->now . "\n";
print "DTABS: " . new DateTime(month => 7, day => 1, year => 2004, hour => 14) . "\n";


=========================
Output:

DATE:  Thu Jul  1 14:05:03 PDT 2004
DTNOW: 2004-07-01T21:05:03
DTABS: 2004-07-01T14:00:00

- Max



Reply via email to