[Hatchet-users] Hatchet fix for "Transaction aborted"
Jason Dixon
jason at dixongroup.net
Wed May 11 17:00:02 EDT 2005
Hi folks-
Is anyone out there? :)
I hope to have an update to Hatchet out no later than this weekend,
maybe sooner. I just got a very helpful fix from Humberto Sartini
regarding the "Transaction aborted... date out of range" error. I
missed that there's a method in Time::Local called timelocal_nocheck()
that avoids the range checking that's been causing us all headaches
with Hatchet. The following changes should provide relief for anyone
suffering this error:
(hatchet, v.0.7.1)
Line 11: use Time::Local 'timelocal_nocheck'; #optional
Line 170: my $epoch = timelocal_nocheck($sec, $min, $hour, $mday,
$months{$month}, $year);
Line 205: my $epoch = timelocal_nocheck($sec, $min, $hour, $mday,
$months{$month}, $year);
Thanks,
--
Jason Dixon
DixonGroup Consulting
http://www.dixongroup.net
More information about the Hatchet-users
mailing list