• Resolved Solanaceous

    (@solanaceous)


    Hi there,

    this is my first post in this forum, so I wanted to say after trying several calendar plugins, I stuck with Event Organiser because of it’s nice frontend integration and ease of use. I really like this one and use it on a regular basis.

    Recently I stumbled upon a small yet annoying bug that makes some all-day events appear one day off.

    Here’s how to reproduce:

    • Set your the timezone of your WordPress installation to one with daylight saving time, e.g. Europe/Berlin. This is equal to CE(S)T, which is used within most European countries.
    • Create an event whose end date equals the last day of the current year’s DST. In 2014, DST in this timezone ends on October 26, so let’s say our event runs from October 21 to 26. Set the event as all-day and save.

    The event is now displayed as running from October 21 to 27, both in the event list and in the graphical calendar. I assume for an all-day event, n full days are added to the start date, and since the last day of this event has only 23 hours, the end date gets shifted into the next day. Any help would be greatly appreciated.

    https://www.ads-software.com/plugins/event-organiser/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Stephen Harris

    (@stephenharris)

    Thanks for reporting this. When calculating the end dates of an event (imagine this is a recurring event to see why this makes sense!), you first take the start dates of the events (as specified by the recurrence rule / custom selection) and then add the duration to each date.

    It seems, therefore that the duration of the event is being miscalculated, and consequently the calculated end date is incorrect.

    I’ll post and update once a fix for this bug has been found.

    Plugin Author Stephen Harris

    (@stephenharris)

    A fix has been found, the relevant ticket can be found here: https://github.com/stephenharris/Event-Organiser/issues/224.

    You can expect it in the 2.8.7 update.

    Thread Starter Solanaceous

    (@solanaceous)

    I included your fix, seems to work fine. Thanks a lot!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Issue with multi-all-day events and daylight saving time’ is closed to new replies.