| Issue 1136: | DST makes appointments shift 1 hour | |
| 1 person starred this issue and may be notified of changes. | Back to list |
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
Jan 9, 2012
(No comment was entered for this change.)
Status:
Done
|
|
| ► Sign in to add a comment |
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