Subject: | Report a new Bug |
Date: | Wed, 29 Mar 2017 14:29:46 +0200 |
To: | bug-DateTime-Event-Cron [...] rt.cpan.org |
From: | Miroslav Ban <mirza.ban [...] gmail.com> |
Hi,
I would like to report bug regarding DST and DateTime::Event::Cron library.
Problem occurs when DST changes from CET to CEST ( on date Sun, 26 Mar,
2017 Time between 02:00 and 03:00 didn't exist because clock moved from
02:00 to 03:00 levanig gap in that period.)
https://www.timeanddate.com/time/zone/croatia/zagreb
Testing code in attachment
Test Case:
Cron expression: */7 * * * *
iterator(after => DateTime->new( year => 2017, month => 03, day => 26, hour
=> 1, minute => 32, second => 0, time_zone => 'Europe/Zagreb'))
Result:
2017-03-26T01:35:00
2017-03-26T01:42:00
2017-03-26T01:49:00
program died!!!
If you look at result next line should have been
2017-03-26T01:56:00
and then next lineshould have been
2017-03-26T03:00:00
Thanks in advance for bugfix and the efforts for producing this valuable
library
Sincerely,
Miroslav Ban
Message body is not shown because sender requested not to inline it.