Date Time condition incorrect time
-
On our wordpress instance, when using the date time condition, the visibility plugin never gets the time right where it is supposed to hide or show an element. It trails 1 hour behind. We checked and the server time as well as the time zone settings are correct. Also, the timestamp shown in the Date time condition is correct. Is this a bug?
-
Hi there,
Thanks for reaching out to us.
About the query here, I have tested the Date/Time visibility condition on my end and I’m unable to replicate the issue. The setting is working as expected, which suggests this may be specific to your environment rather than a bug in the plugin itself.
Taking the above into consideration, could you please try the following:
- Double-check that your WordPress Timezone is set to a city within the (Settings > General) section on your WordPress dashboard, rather than a UTC offset.
- Temporarily disable any caching (including CDN, if applicable) and test again
- Clear all caches (site, browser, server)
- Temporarily deactivate other plugins (except Elementor and the visibility plugin) to rule out conflicts with other plugins that you may have in place
Let us know if this helps.
Kind Regards
We tried the following:
- Timezone is set to a city
- We disabled caching
- We cleared all caches
- We deactivated other plugins
Sadly, the issue persists. Is there anything else we can try?
Hi there,
Thanks for staying in touch with us.
In this case, if the above didn’t help, then the issue here is likely something to do with your server. The server’s PHP configuration (date.timezone) may differ slightly from the WordPress setting. I would recommend that you confirm with your hosting provider that both are aligned.
Let us know how it goes.
Kind Regards
We selfhost, so here’s the terminal output from our server’s time zone settings:
info@XXXXXXXX:~$ timedatectl
Local time: Mon 2026-03-23 08:33:16 CET
Universal time: Mon 2026-03-23 07:33:16 UTC
RTC time: Mon 2026-03-23 07:33:16
Time zone: Europe/Berlin (CET, +0100)
System clock synchronized: yes
NTP service: active
RTC in local TZ: noAnd these are the corresponding wordpress settings:
Timezone: Berlin
Choose either a city in the same timezone as you or a UTC (Coordinated Universal Time) time offset.
Universal time is2026-03-23 07:44:41.Local time is2026-03-23 08:44:41.This timezone is currently in standard time.
Daylight saving time begins on:March 29, 2026 3:00 am.So they are the same. What else could be the issue?
Kind regards
Hi there,
Thanks for staying in touch with us.
About the query here, it is likely then that there could be a mismatch between the WordPress time and PHP time.
The plugin uses WordPress functions (which follow your Berlin timezone) for current time,
but the date/time set is parsed using PHP (strtotime()), which may be using a different timezone (often UTC). This can result in a consistent 1-hour difference.Taking the above into consideration I would suggest carrying out the following:
1. Confirm your PHP timezone by running:echo date_default_timezone_get();If it’s not Europe/Berlin, update your php.ini to:
date.timezone = Europe/Berlin2. Restart the PHP/server and clear caches before testing again, and check whether the issue is resolved.
I hope this resolves the issue.
Kind Regards
You must be logged in to reply to this topic.