Skip Menu |

This queue is for tickets about the DateTime-Event-Cron CPAN distribution.

Report information
The Basics
Id: 120789
Status: resolved
Priority: 0/
Queue: DateTime-Event-Cron

People
Owner: MSISK [...] cpan.org
Requestors: mirza.ban [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.09



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.

Subject: Fwd: Report a new Bug
Date: Wed, 5 Apr 2017 11:00:55 +0200
To: bug-DateTime-Event-Cron [...] rt.cpan.org, Matt Sisk <sisk [...] mojotoad.com>
From: Miroslav Ban <mirza.ban [...] gmail.com>
I have temporary solution for bug with ID 120789 <https://rt.cpan.org/Ticket/Display.html?id=120789> until author resolves bug. Author or anyone else can freely use my soultion for bugfix. Solution: Just replace your old Cron.pm file with new one in attachment. Tested with: perl version v5.20.1 on Windows 7 OS and perl version v5.24.0 on Centos 6 I hope that this solution will benefit all who have a problem with DST Use this patch at your own risk. feel free to contact me by mail: mirza.ban@gmail.com Sincerely, Miroslav Ban Show quoted text
---------- Forwarded message ---------- From: Miroslav Ban <mirza.ban@gmail.com> Date: 2017-03-29 14:29 GMT+02:00 Subject: Report a new Bug To: bug-DateTime-Event-Cron@rt.cpan.org 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.

Message body is not shown because sender requested not to inline it.

Thanks for reporting this. I refactored the increment/decrement logic such that DST transitions are now properly handled. Fixed in version 0.09.