Support » Plugin: Events Manager - Calendar, Bookings, Tickets, and more! » Recurring events showing on wrong day (calendar)

  • Resolved son0fhobs

    (@son0fhobs)


    Greetings!

    I’m using the pro version of Events Manager, and as soon as the client confirms I’ll renew the license, but for now I’m using pro 2.8.3.1

    Recurring events, and only recurring events, are showing up a day early, both on the calendar and denotated by date on the listings.
    Ex. If the event is supposed to show weekly on Saturday, the event shows up on the calendar on Friday and the date matches Friday as well. Any ideas? Was it a bug fixed in more recent versions?

    Thanks for your help!
    Gratefully,
    David

    https://wordpress.org/plugins/events-manager/

Viewing 13 replies - 1 through 13 (of 13 total)
  • I just noticed that I have the *exact* same problem – recurring events, and only recurring events, show up one day early on my Events Calendar.

    Odd that we both noticed this the same day. Was there a recent update/fix that caused this?

    Perhaps related – is that on the add/edit recurring events page, where you set the schedule for the event, it lists the days of the week Monday -> Sunday. ie:

    This event repeats Weekly every 1 week on
    Mon Tue Wed Thu Fri Sat Sun

    Should the days of the week be Sunday -> Saturday?? Is this cuasing trouble? Note that my WordPress general settings page is already set to start the week on Sunday, not on Monday.

    Thanks,
    NS

    Thread Starter son0fhobs

    (@son0fhobs)

    @nstampler
    I’m using an old version of the premium plugin – 2.8.3.1, I’m guessing it’s just happenstance for the timing. Are you using the premium or free version, I thought recurring events was only available on the premium, no?
    The free version I’m using 5.6.1. I tried reverting to 5.5.5 and had the same issue.

    I don’t believe it relates to which day of the week, I tried with two different events, Tue/Wed and Sat/Sun, same issue.

    Thread Starter son0fhobs

    (@son0fhobs)

    @nstampler
    After sifting through the support I found someone else having the issue. The moderator didn’t offer much help. Have you tried disabling all the plugins and going back to 2014 theme to see if the issue remained?

    Here’s the thread:
    https://wordpress.org/support/topic/recurring-events-showing-up-on-wrong-day?replies=2

    @sonOfhobs, thanks for your responses.

    I’m using the most recent upgrade of the free version – 5.6.1. The free version clearly includes recurring events, see: http://wp-events-plugin.com/features/

    Just now, I tried your suggestion of switching to the default theme, and it did not help the problem to go away. I’m hesitant to start disabling plugins bec I don’t have a test copy of the site, and on the live site, I’m afraid that I’ll loose some plugin settings, which will just create other problems on top of this one…

    Note that we have a few diff. recurring events running on various days of the week, and they *all* show up one day early. Only the non-recurring events are showing up on the correct date.

    Which version of Events Manager (not Pro) are you guys using?

    Thread Starter son0fhobs

    (@son0fhobs)

    @caimin_nwl
    As was mentioned: we both tried 5.6.1 of the free version, and I reverted to 5.5.5 with no success.

    I’m setting this up for a client and am impatient, so I came up with a horrible hack. Explanation first, then implementation.

    Given the days of the week are off by one day, I just used javascript to change the labels to what they really are. I also found that the “Each event spans day(s)” added an extra day. The best I could do was add a little warning next to it to decrease the number by 1.

    Here’s how I did it:
    First, install the plugin Add Admin Javascript – https://wordpress.org/plugins/add-admin-javascript/

    In the settings screen, at the very bottom there’s a large textbox with the label “Admin jQuery JavaScript”

    Add this javascript (jquery) there:

    // run only if title has "Recurring Event"
    if(~$('h1').text().indexOf('Recurring Event')){
    
        // add -1 day warning
        $('.em-duration-range').append(' | <strong>**subtract 1 day to fix bug</strong>');
        
        // change weekday labels
        var weekdays = [];
        $('#weekly-selector label').each(function(i){
            weekdays.push($(this).text());
        });
        weekdays.unshift(weekdays.pop());
        $('#weekly-selector label').each(function(i){
        $(this).contents().last()[0].textContent = weekdays[i];
        });
    }

    It only runs after the page is fully loaded, so the warning and the labels won’t get adjusted immediately.

    No guarantee this will work reliably and if you notice a bug, let me know. It’s worked for me so far.

    Is it only old events that have this problem? Do newly created events also display a day off?

    Does it make any difference if you change the “Week starts on” setting under Settings > General?

    Thread Starter son0fhobs

    (@son0fhobs)

    Apparently newly created events are working. Odd.

    It still spans 1 day longer than set to, but it’s close enough for now.

    Thanks for sticking with this.

    FYI, I found that newly created events display fine, so I’m going to simply delete all recurring events and re-enter them into the system. Thanks for your help in helping me figure that out.

    And the “Week starts on” settings don’t seem to affect this.

    I think it’s related to daylight savings time. I’m having the same problem, but it only starts AFTER Oct. 31st. It’s like the calendar decided to fall back a whole day instead of just an hour.

    I’m not sure why this thread is marked as “Resolved”. Is it resolved? The javascript hack above – it changes the labels, but would it change where the events are shown in full calendar mode?

    This thread has the solution at the very end. Perhaps a “cleaner” fix than the javascript above.

    https://wordpress.org/support/topic/recurring-events-wrong-after-daylight-saving-times-end-bug

    All recurring posts had to be re-saved, but fortunately not re-created. Just open them and then click “Update”.

    The solution I mentioned above is no longer working after the latest update. Grrrrr. Frustrating.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Recurring events showing on wrong day (calendar)’ is closed to new replies.