Recurring events issue

Home Forums Calendar Products Events Calendar PRO Recurring events issue

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #1356086
    Matthew Nelson
    Participant

    Hello,

    We seem to be experiencing an issue with recurring events on one of our clients’ websites related to daylight savings time. After daylight savings time ends, the time is shifting forward an hour. I have looked through some articles and forum entries and have found things that seem related, but do not seem to provide a fix for us. The site’s timezone is set to UTC-4 and the data seems to have already been updated previously. Am I missing something here?

    Thanks in advance for your help!

    #1356978
    Andras
    Keymaster

    Hello Matthew,

    Thanks for getting in touch.

    Ah, the dreaded DST change. 🙂 I’m sorry you are having issues with this.

    Could you give me some more details on this? Can you point me to an event where this is happening in your calendar?

    Does it also happen with newly created recurring events?

    The more details you can give me the better.

    Thanks and looking forward to solving this case.

    Cheers,
    Andras

     

    #1357901
    Matthew Nelson
    Participant

    Hi Andras,

    You can find an event that this is occurring with here http://cawley.sau15.net/. One event that this is happening with is Student Council, which is currently set up to be on the first Friday of each month, but will be swapping to the third. This month it is showing the correct time from 7:15-7:40, next month it is displaying as an hour later at 8:15-8:40.

    After you mentioned it, I did try to set up a new event just in case the client had not tried it, but unfortunately it was of no help anyway and I experienced the same problem.

    Thanks again for your help!

    #1358171
    Andras
    Keymaster

    Hey Matthew,

    Okay, I see the issue, thanks!

    I started testing this locally, but couldn’t reproduce yet. I’d like to as for some screenshots from you so I can try to replicate your case. This is what I would need:

    • WordPress timezone settings under Settings > General > Timezone (screenshot)
    • TEC timezone settings under Events > Settings >  General tab (screenshot)
    • Recurrence rules of the Student Council event

    This will allow me to mimic your setup as close as possible.

    I discovered some css glitches on your site where the datepicker and the tooltip were hidden behind the main menu. If you copy the below snippet to your theme’s (preferably child theme’s) style.css file that should fix this. 😉

    .datepicker, .recurring-info-tooltip.tribe-events-tooltip {
    z-index: 9999 !important;
    }

    Cheers,
    Andras

    #1358280
    Matthew Nelson
    Participant

    Hey András,

    Thanks for the CSS tip, I hadn’t even noticed that so that’s very appreciated. I have attached the screen shots for your review. I don’t believe anything is off, but please let me know if it is.

    Thanks again for your help!

    #1359173
    Andras
    Keymaster

    Hi Matthew,

    Thanks for sharing the screenshots.

    I tried to recreate the issue with exactly the same settings but I couldn’t.

    If you set up a new event with the same rules do you still get the same result?

    A note: based on my experience it is best to have the WordPress timezone set up as a city name like New York, if that is your timezone. The reason is that the UTC-4 timezone will always give you the UTC-4 time and that doesn’t take DST into account. And I would do the same for the events.

    Andras

    #1359641
    Matthew Nelson
    Participant

    Hey András,

    I did create a new event with the same settings, although I did remove the first recurrence rule just in case that was affecting things. I also adjusted the time zones like you mentioned, but still had no luck.

    I assume you don’t have any other recommendations?

    Thank you for your help so far!

    #1360185
    Andras
    Keymaster

    Hi Matthew,

    I tried all combinations of timezone setting on my local install and couldn’t recreate the issue.

    What you can still try is set the recurrence not at the ‘same time’ but set it to ‘different time’ and enter the same hours. With this you might fool the system.

    Meanwhile I will try to check further on this DST issue.

    Let me know if that works out or not.

    Cheers,
    Andras

    #1360193
    Andras
    Keymaster

    Matthew,

    I have another user with a slightly different issue, but gave me an idea.

    The user had a line with date_default_timezone_set() in the functions.php file of the theme.

    Try to check if you have something similar in yours. Also you can check your wp-config.php file if there is any timezone declaration there which might influence this.

    And you can also try deactivating all plugins except for The Events Calendar and Events Calendar Pro and switch to a default theme like twentyseventeen and create a recurring event like that. Switching everything off will eliminate any influence that might come from the theme or other plugins.

    Recommended WP Timezone setting is a city-based one, as that follows the DST change automatically. UTC time is always the same, doesn’t change with summer time. I.e. New York is in the UTC-5 timezone, however when DST kicks in for the summer, then the difference to UTC will only be 4 hours. (I know, this is a bit confusing. 🙂 )

    Andras

    #1360583
    Matthew Nelson
    Participant

    Hey András,

    I tried looking into your other suggestions and unfortunately they weren’t of help either. Attempting to hack the event made it jump even further in time for some reason, before the event start time jumped from 7:15am to 8:15am, but this time it jumped to 12:15pm. Also that function was set in the functions file, but commenting it out had no effect.

    Probably next week we will need to try to go ahead and disable everything to see if something is affecting it. Unfortunately we didn’t have enough time today.

    Thank you again for your help so far!

    #1361237
    Andras
    Keymaster

    Hi Matthew,

    Sorry to hear there is no progress yet.

    I had a chat with the developers on the timezone and DST topic. Basically in the code we don’t do anything to handle or offset DST. Everything is left to be calculated based on WordPress and the plugin timezone settings.

    Could you share a database dump with me? I will try to fire it up and check if I can find something.

    Andras

    #1362543
    Matthew Nelson
    Participant

    Hey András,

    The issue is resolved! It turned out that the portion of code in the functions file you had mentioned was what was affecting it. The events just needed to be recreated after removing it from the file.

    Thank you again!

    #1363123
    Andras
    Keymaster

    Oh wow, glad to hear this is solved! Thanks for sharing this and congrats on finding it!

    Since this is resolved I am going to close this ticket, but if you need anything else related to this topic or another please create a new ticket and we’ll be happy to help.

    Cheers,
    Andras

    PS: If you like our plugins, and you didn’t yet do so 🙂 we would be happy to receive a review in the wordpress.org repository. Thanks!
    https://wordpress.org/support/view/plugin-reviews/the-events-calendar/
    https://wordpress.org/support/view/plugin-reviews/event-tickets/

    PS2: We’d be also grateful if you would give us feedback on your satisfaction with support. Just click on one of the classy looking emojis below. 🙂 If you can spare a few words, that’s even better. Doublethanks!

     

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Recurring events issue’ is closed to new replies.