Posted: August 16, 2021 at 4:22 pm
For some reason, after I set the date and times for an event, the time itself on the events view (and on the backend) are always a few minutes off. For example, setting a time of 9:00 AM results in 9:10 AM. The offset from my intended time seems to be random as I cannot get it to display the time I want no matter what I set it to. I’ve checked my plugins and themes for any code that would mess with the time in WordPress and can’t find anything that is obvious. I only have a handful of plugins, Event Espresso being the only one that touches datetimes, and all of my themes are included with WordPress and unmodified. |
|
Hi there, Are you using Advanced Custom Fields and loading you own date fields in EE? Can you add a screenshot of the datepicker shown on the page? I’ve seen it were another (similar) datepicker was loading on the page which then applied its own offset and threw out the values. https://eventespresso.com/wiki/troubleshooting-checklist/#screenshots |
|
Hi Tony, I am not currently using Advanced Custom Fields. Here is the link to the datepicker screenshot: https://snipboard.io/ND4WAn.jpg Thanks! |
|
Hmm, yeah thats looks like our datepicker. What I would do is test an event with only Event Espresso activated, you can do that using the WP Health Check & Troubleshooting plugin: https://wordpress.org/plugins/health-check/ Create a database backup just to be safe. Install that plugin and go to Tools -> Site Health -> Troubleshooting. Enable troubleshooting mode. That will de-activate all plugins and switch you to a default theme if your not already using one (but only for you, the logged in admin). In the admin bar at the top go to Troubleshooting modern -> Manage Active plugins. Enabled just Event Espresso. Retest the above, do the times still shift? If not, enable each of your site’s plugins one by one using the same method as above and retest updating the event until it starts again and let me know which plugin you activated. If it does still do it with just Event Espresso installed we can investigate a little further. |
|
Looks like the times are still shifting even when just Event Espresso is active in Troubleshooting Mode. |
|
Hello, just following up on this issue. The event times are still not behaving correctly, maybe there’s a line of PHP somewhere that needs to be adjusted. |
|
Apologies for the delay, I’ve been looking into this but so far I’ve been unable to reproduce. Can I take a look in the admin to see if anything stands out? If that’s ok you can use this form to send temp login details: |
|
Looks like I’ve just figured it out, I previously used a custom Time Format string set to h:m A for the event Times in order to get a leading 0 for times where the hour was one digit. I ended up mistakenly using the month string m instead of the proper minute string i, resulting in month numeric values where the minutes should be. Just a silly mistake overall, hope it wasn’t too much of an inconvenience for your team. |
|
This reply has been marked as private. | |
Hi there, Firstly, nice find! That’s something I’m going to add to my checklist for this as it’s easily missed and subtly fails. With regards to your private reply, I can’t do that on the forums but I’ve sent this over to our sales team whoc should be able to address this for you. |
|
The support post ‘Event times not correct after being set in Event Tickets & Datetimes’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.