• Resolved pcdokterbreda

    (@pcdokterbreda)


    When switching to Winter time last week the plugin started to show today two days in the past.

    Saving exceptions in opening hours results in shifting all existing values one day back.

    I have cleared the cache and reset the plugin, but the issue persists.

    The timezone is set to Amsterdam (UTC+1). The current date time from the server reports the correct date and time.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Design Extreme

    (@designextreme)

    @pcdokterbreda I don’t think this is an issue with the plugin because such issues were resolved in earlier versions – and even so, it would only ever be a day out rather than two.

    Have you checked your page cache specifically? You may need to clear this to get the current “today”.

    If that doesn’t work, please use the following to clarify what is “now”?

    [open_text]%now%[/open_text]

    There is something that will work around caching, with an immediate AJAX call:

    [open update="immediate"]

    I look forward to your response.

    Thread Starter pcdokterbreda

    (@pcdokterbreda)

    No, my page cache recycles every night. And I have removed it manually too to update the page and set the We are open text manually.

    I added the %today% and %now% values to the linked page.

    Today: Zaterdag Now: 16:38

    As you can see it reports as Saturday.

    Plugin Author Design Extreme

    (@designextreme)

    @pcdokterbreda Mm, interesting…

    Please can you drop me an email to: wordpress dash plugins at designextreme dot com because that is quite outside of what I’d expect with the days.

    Plugin Author Design Extreme

    (@designextreme)

    @pcdokterbreda After your super-helpful email correspondence, we figured it was the PHP version. Once you restored it to 8.0 and cleared the cache, the issue went away.

    This plugin is only tested fully up until PHP 8.0. If you are using 8.1, there may be some unexpected results.

    I do have this listed as an 8.1 bug for now and I’ll resolve it as soon as possible.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Today is 2 days in the past?’ is closed to new replies.