On Sun, 2 Feb 2014, Lloyd Fournier via RT wrote:
Show quoted text> Sun Feb 02 09:06:28 2014: Request 92655 was acted upon.
> Transaction: Ticket created by M0ast
> Queue: DateTime
> Subject: from_epoch freezes program if epoch is milliseconds instead of seconds
> Broken in: (no value)
> Severity: (no value)
> Owner: Nobody
> Requestors: lloyd.fourn@gmail.com
> Status: new
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=92655 >
>
>
> DateTime->from_epoch(epoch => 1391000488000, time_zone =>
> 'Australia/Sydney')
>
> seems to freeze the program. (it doesn't fail if there is no time_zone)
If you waited long enough it'd complete. The issue is that it has to
calculate DST changes all for about 44,000 years, and that's going to take
a while.
This will be fixed when we switch to DateTime::TimeZone 2.0. But
regardless, what you're doing doesn't make any sense. Time zones don't
really apply to far future dates, unless you expect the Australian
government to be around 44,000 years from now.
-dave
/*============================================================
http://VegGuide.org http://blog.urth.org
Your guide to all that's veg House Absolute(ly Pointless)
============================================================*/