Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the DateTime CPAN distribution.

Report information
The Basics
Id: 2601
Status: resolved
Priority: 0/
Queue: DateTime

People
Owner: DROLSKY [...] cpan.org
Requestors: nick.phillips [...] stonebow.otago.ac.nz
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.12
Fixed in: 0.13



Subject: Bug in epoch() method
Return value from epoch() method is incorrect for many+varied years due to Time::Local's year parsing. Try converting the MacOS epoch from a DateTime object to an epoch time and back again, for example. Cheers, Nick
Download bugreport
application/octet-stream 1.6k

Message body not shown because it is not plain text.

[Nick - Mon May 19 00:25:24 2003]: Show quoted text
> Return value from epoch() method is incorrect for many+varied
years Show quoted text
> due to Time::Local's year parsing. Try converting the MacOS
epoch from Show quoted text
> a DateTime object to an epoch time and back again, for
example. G'day Nick, Could I get you to forward a snippet of code that breaks? I've tried using a returned epoch as the epoch for a new DateTime and only had success. Please send just a small snippet that exploits the bug you mention. Cheers! Rick
RT-Send-CC: datetime [...] perl.org
Okay, apparently this was just a problem in how Time::Local was being used. Nick, it seems from your messages like you knew what the problem was. In the future, if you do know, you should just tell the developers (and conversely, if you don't know say that too).