You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apologies if this has already been posted, but I was unable to find anything relating to it.
Whenever I have a particular event occurring near the end of the month, e.g 31th, I will get a duplicate event shown on the 30th also. My start time and end time are identical, so it should only appear only on the 31st.
Here is an example of the data I'm creating an event with.
{"success":1,"result":[{"id":25689,"title":"event1","url":"index.php?cmd=event1","start":"1396220400000","end":"1396220400000","class":"event-info"},{"id":25732,"title":"event2","url":"index.php?cmd=event2&id=25732","start":"1396220400000","end":"1396220400000","class":"event-info"}]}
Both event start and end times equal Sun, 30 Mar 2014 23:00:00 GMT but both these events are meant to occur on the 31st March 2014 00:00 and am pulling them directly from DB.
Looking further into this, it looks like a daylight savings issue, but am still unsure how to resolve
The text was updated successfully, but these errors were encountered:
I don't know if the previous two people found a workaround for this issue or not. What worked for me is detecting when the DST happens and then correcting the event's start time by an hour. I use PHP so right before I add the event to the output array I run it through a simple logic check like so:
Apologies if this has already been posted, but I was unable to find anything relating to it.
Whenever I have a particular event occurring near the end of the month, e.g 31th, I will get a duplicate event shown on the 30th also. My start time and end time are identical, so it should only appear only on the 31st.
Here is an example of the data I'm creating an event with.
{"success":1,"result":[{"id":25689,"title":"event1","url":"index.php?cmd=event1","start":"1396220400000","end":"1396220400000","class":"event-info"},{"id":25732,"title":"event2","url":"index.php?cmd=event2&id=25732","start":"1396220400000","end":"1396220400000","class":"event-info"}]}
Both event start and end times equal Sun, 30 Mar 2014 23:00:00 GMT but both these events are meant to occur on the 31st March 2014 00:00 and am pulling them directly from DB.
Looking further into this, it looks like a daylight savings issue, but am still unsure how to resolve
The text was updated successfully, but these errors were encountered: