Incorrect date information
-
Hello,
We are using your plugin in a project that also uses the “Modern Events Calendar Lite” plugin. This is used to store events that have a specific date.
Problem:
As soon as edoobox is activated, the date of each event is generally displayed incorrectly. Instead of 20.06.2024 it shows 19.06.2024.What I have already investigated:
I have ruled out the hosting as the cause, as the problem also occurs locally on my site.
In WordPress, the time zone is set correctly to Europe/Berlin.
I have deactivated all plugins except “Modern Events Calendar Lite” and edoobox – problem still occurs.
If I then deactivate edoobox, the dates are displayed correctly.Also noticeable:
As long as the edoobox plugin is activated, you can see a warning under Tools > Site Health that date_default_timezone_set() was called incorrectly.The reason for this seems to be that your plugin calls the PHP function
date_default_timezone_set()
intimezone.php
(and uses the WordPress timezone value for this). In my opinion, this is not necessary as WordPress already takes care of this. This double call ofdate_default_timezone_set()
(once by WordPress, once by edoobox) leads to the problem.It would be great if you could offer a solution. At the moment there are many events in the affected website with the wrong dates and edoobox is also needed.
Thanks in advance ??
WordPress: 6.5.5
edoobox: 3.0.23
- You must be logged in to reply to this topic.