Issue 1136: DST makes appointments shift 1 hour
Status:  Done
Owner: ----
Closed:  Jan 2012
Reported by leol...@gmail.com, Oct 3, 2011
When I make repeated calender items, i have code to just add 604800 seconds to the previous item.

So I add one week in seconds... this goes perfectly until the DST kicks in. after 30 oktober my items shifts one hour back ??

This is not something i expected.. when I have a repeating appointment on 18:00 it should stay this way DST or not.

How can I fix this..

Behaviour can be seen on http://2basix.nl/plug.php?e=slotplanner


Oct 3, 2011
#1 leol...@gmail.com
You can close/delete this Item...
I have found a solution:

Developers can use date('Z',$time_start) to detect the timezoneoffset

And in every cycle that you add one week further, you test the timezone and compare that with the timezone when the first item started.
do  TZoffset_start - TZoffset_now   and add that to the new time !

Hopefully this is usefull for somebody


Jan 9, 2012
Project Member #2 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Done