Subject: | DateTime always gets epoch of '1' |
$ perl -MTime::Fake='+2d' -e 'require DateTime; print time, " ", DateTime-
Show quoted text
>from_epoch(epoch => time)->epoch,"\n"'
1200745458 1
I'm not quite sure whats happening there...
But it also does weird things even if Time::Fake is just loaded
$ perl -MTime::Fake -e 'require DateTime; print DateTime->from_epoch(epoch =>
1200745458)->epoch,"\n"'
1
$ perl -e 'require DateTime; print DateTime->from_epoch(epoch => 1200745458)-
Show quoted text>epoch,"\n"'
1200745458
Shame this doesn't work, cos otherwise its a very useful looking module.