Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Baden

    (@baden03)

    time is based on server time, using the time zone setting of wordpress. Are you by chance using a caching plugin?

    Thread Starter olegthered

    (@olegthered)

    No, I am not using caching plugin. I also tried Timed Content plugin and it works fine based on server time. But I would prefer your plugin if I could find the way to make it work based on server time.

    Thread Starter olegthered

    (@olegthered)

    By the way, I add countdown via shortcode. May be it changes smth.

    Plugin Author Baden

    (@baden03)

    please share a link to your page. In the page source code you can clearly see what time the server is using to countdown.

    Thread Starter olegthered

    (@olegthered)

    Here it is: https://tracers.ru/countdown-test/
    When I change time on my MacOS countdown time is changing.

    Plugin Author Baden

    (@baden03)

    We just tested your timer, on a mac, changing the local time and it had absolutely no effect.
    In the image linked to above, notice how the client time has changed, but the ‘localtime’ of the server remains the same.

    The time is calculated using the server’s time, adjusted by the Timezone setting of WordPress.

    Thread Starter olegthered

    (@olegthered)

    Baden,
    ok but I can’t get same result as you. I tried in different browsers after logging out from web site and result is same – I change time then save it (in MacOS settings) and see event that should appear when get to zero even without reloading page. I tried it on my iPad and got same result – I see text hidden by timer when I set time later target time.

    May be shortcode gives timer client-side oriented?

    Hi

    Hope ok, if I jump into this thread please, as am having the same kind of issue – that our website clock time is not always displaying the same time as server time.

    However, noting Baden’s first comment, I should point out that we are using the Wordfence Falcon Cache plugin. So I’d be interested to understand if this is the issue, as well as if can we do anything about it.

    Plugin Author Baden

    (@baden03)

    Wordfence also features Caching. If the page is not being generated from the server, but rather has been cached, the time calculations will be based on the time the page was cached.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Server time not client’ is closed to new replies.