This Week Widget week start does not match settings

Home Forums Calendar Products Events Calendar PRO This Week Widget week start does not match settings

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #1148835
    Julia Kay
    Participant

    Hi,

    I’m using the This Week widget on the homepage of our site and this morning noticed that the widget has not switched over to the new week. When I click to the next week it highlights the correct day (Monday) as being today however the view defaults to the week previous.

    I had a look around the documentation and saw that the widget bases off the site settings for week starting. Currently I have it set to week starting Monday – which as today is Monday I would expect the view to have switch to week starting August 8th. I played around with this setting and set it to Sunday and the This Week widget went to the correct week! What I can surmise from this is that the week starting is being determined by a time outside of my timezone.

    My timezone is GMT +13 (New Zealand) so we are in Monday morning while the US is in late Sunday and I think my issue is with this.

    I have checked that our server is setting to my current timezone and ensured that the site settings are also correct to NZ times. I have The Events Calendar set to ‘Use the sitewide timezone everywhere’.

    Is there any way that I can force the This Week widget to use my timezone to determine what week we are in?

    I am aware that this problem will be hard to see on my site by the time any support is able to address this so I have supplied screenshots of the default week display and the display of the next week.

    Thank you in advance for any support.

    #1149052
    Andras
    Keymaster

    Hello Julia,

    Thanks for reaching out! That is an interesting problem, let me try to help you with that.

    I’m sitting in Europe, I checked your site now (Monday, 7pm CEST / Tuesday 5am Auckland time) and Tuesday is marked as Today, correctly. So that’s good.

    Cloudup cdxefya32t1

    In your system information I see that you are using TEC 4.2.3. A few days ago we have released a bugfix update, I would recommend you to update the plugin in any case.

    In the timezone settings, did you also try using the other setting, Use the local timezones for each event?

    Until you check these I will also try to ask the team if anybody has any knowledge on this.

    Cheers,
    Andras

    #1149201
    Julia Kay
    Participant

    Hi Andras,

    Yes, this is a funny issue that only presents itself in my mornings so troubleshooting may be interesting between time zones. To counteract this I’m going to start switching the day start before I leave for the night so that when you are able to respond that the issue should still be present provided it’s not a time where we’re both still on the same day.

    I just updated TEC to the latest version to see if any bug fixes addressed my issue.

    I changed the week starting to Tuesday to see if the cusp of the week change was sorted but it has now gone back to displaying Week starting Aug 2nd (Tuesday start). If I switch to week starting Aug 9th it has correctly identified that today is Aug 9th (but my styling is based on only seeing the current week so won’t highlight – I can see the correct class has been applied, however).

    In regards to the timezone settings I did previously have it on ‘Use local timezones for each event’ with the same issue and have also switched back to this to have the same issue.

    #1149698
    Andras
    Keymaster

    Hi Julia,

    I take it you set it the start of the week to Wednesday. This is what I see:

    Cloudup 2toq5poggiq

    Since it is already Wednesday in New Zealand, it should be showing the next week. Very strange.

    I ask for a bit of patience, please give me some time to investigate. Meanwhile I would like to ask you to keep updating the start of the week before leaving for the night.

    Thank you and I’ll be in touch soon.

    Andras

    #1149703
    Andras
    Keymaster

    Hello again,

    Do you have any customizations / custom codes in your functions.php file? If yes then removing these and running a test like that would be worth it.

    Also, would it be possible that you do a test for conflicting plugins / theme based on this guide? https://theeventscalendar.com/knowledgebase/testing-for-conflicts/

    In short, you need to switch off all plugins except the Events Calendar ones, and switch to a default theme like twentysixteen, and check if the issue still exists.

    I’ll be waiting for your results.

    Cheers,
    Andras

    #1149706
    Julia Kay
    Participant

    Hi Andras,

    Glad you were able to catch the issue as well!

    I will run a test with default theme and no other plugins now – I do have some custom functions, including one for the tribe_get_events_title to change Events titling.

    I will be back to you shortly.

    #1149716
    Andras
    Keymaster

    Where is your server located? Is it also in New Zealand, so in the same timezone?

    And do you know what time the widget jumps to the right week? I see it’s almost 10am in Auckland and it still shows the last week. This might shed a light on things.

    Andras

    #1149722
    Julia Kay
    Participant

    Thank you for your patience.

    I have disabled all plugins but TEC and TEC Pro and switched theme to TwentySixteen and the problem is still persistent.

    Our server is physically located in Canada but is set to NZ time as shown in my WHM (screenshot attached).

    The widget jumps around midday. I noticed the switch happened when I came back from my lunch break on Monday around 1pm but I unfortunately can’t tell you the exact time. I will watch it today and can report back when I know the time.

    #1149735
    Andras
    Keymaster

    Thanks Julia,

    Meanwhile I managed to recreate the issue locally.

    Could you please send me a screenshot of your Timezone settings under Settings > General, like this?

    Cloudup wsc4n4jr153

    I’ll keep investigating.

    Andras

    #1149738
    Julia Kay
    Participant

    Here is the timezone set up up under Settings > General

    Will be interested to see if the widget jumps over at 12pm here as that is midnight UTC.

    #1149740
    Julia Kay
    Participant

    Too trigger happy 🙂

    #1149744
    Andras
    Keymaster

    🙂 Thanks!

    If you can, please let me know when it jumps. I’m super curious. 🙂

    Andras

    #1149758
    Julia Kay
    Participant

    I will do when I see.

    In the meantime am I able to switch back to my theme and plugins?

    #1149798
    Julia Kay
    Participant

    Unfortunately I did not manage to check the site at 12pm. However I checked at 11:37ish and the widget had not switched over and at exactly 1pm the widget was definitely switched over.

    #1149998
    Andras
    Keymaster

    Hi Julia,

    Thanks for checking this. Yes, you can switch back your theme and plugins.
    It looks like an issue with the plugin. The week seems to switch at UTC midnight.

    I have already filed a bugreport and added your thread to it. We’ll be investigating the issue. I ask for your patience.

    I am going to close this ticket to new replies, but the issue is still open and we will update it once we release a fix.

    If you have any new questions or issues please create a new ticket and reference this one.

    Cheers,
    Andras

Viewing 15 posts - 1 through 15 (of 17 total)
  • The topic ‘This Week Widget week start does not match settings’ is closed to new replies.