feiiiiiiiiiii has asked for the wisdom of the Perl Monks concerning the following question:

Hi guys,

Surprisingly, I found that Perl DateTime module gives wrong Israel Tel Aviv time. Israel day light saving time started last Sunday (3/27/2016), but DateTime module still gives the old time, which is one hour behind the correct time. Double checked my linux machine, the zoned time is correct. So this is Perl issue.

use DateTime; my $epoch = time(); my $date_time = DateTime->from_epoch(epoch => $epoch); $date_time->set_time_zone('Asia/Tel_Aviv'); print $date_time;

The above code prints wrong time with 1 hour lag. Anyone has any idea what causes the error and who I should report this error to?

Thanks,

Fei

====Update====

Turns out I need to update my DateTime module. The current version I'm using is out of date

Replies are listed 'Best First'.
Re: Perl CPAN module DateTime gives wrong Israel time
by beech (Parson) on Mar 30, 2016 at 02:59 UTC
Re: Perl CPAN module DateTime gives wrong Israel time
by Your Mother (Archbishop) on Mar 29, 2016 at 21:23 UTC

    Google and DateTime both give me the same time right now: DT -> 2016-03-30T00:22:05 Google -> 12:22 AM. The guys who do DateTime take it extremely seriously. I couldn’t imagine an error this obvious creeping in.

Re: Perl CPAN module DateTime gives wrong Israel time
by ww (Archbishop) on Mar 30, 2016 at 02:40 UTC