Posted: March 17, 2017 at 5:21 am
|
Everything has been working well until a few days ago, when new created events have have started to show UTC times in front-end, although my WP setting is UTC+1. In the case of old events, they keep the old times correctly, but if when I change date times they also start to reflect UTC, instead of UTC+1. I’ve tried to disabled the plugins installed to see if there is any conflict, but none seems to be interfering. Most curiously is that when another user without admin privileges creates an event, the event date times show correct UTC+1 date times. |
Hi there, Generally issues with datetimes being displayed correctly are caused by another plugin (or the theme) incorrectly using You mentioned this worked fine up until a few days ago, something must have changed at that point. Did you install a new plugin? Update current plugins, or the theme? When you de-activate all plugins you’ll need to edit the event, save the correct date/time and then check the front end, did you do that previously? |
|
|
I updated Event Espresso to version 33, and installed the plugin WP Customer Reviews. However, I deactivate the plugin, edit the date time and see the front-end and the UTC error persists. This is headache. |
|
My problem with event date times extends to the point of wrong selling to/from date times in tickets. Tickets start selling one hour before and finish also one hour before the time selected in date time picker. |
Hi there, UTC +1 doesn’t actually offset times for daylight savings time. I’m not sure if that would affect your part of the world, but it might explain why things aren’t working for you all of sudden. You can set your timezone setting to Madrid on the WP > Settings > General page and then the times for events that occur after Daylight Savings time will automatically have the correct offset. |
|
|
Thanks, yes, I changed to Madrid time zone in order to offset times for daylight savings time. However, the problem has even got worse. Now event date times shown in the website show a difference of 2 hours less, i.e event start/end times as set in the admin are 19:00-20:00, but the website shows 17:00-18:00 for the event. |
|
I changes theme from Januas child to Twenty Fifteen, and the problem with event date times does not appear. |
|
As I said before I have tried to deactivate all plugins, but still event date times error shows. Curiously event date times in the calendar are shown correctly. |
So switching away from Januas ‘fixes’ the dates/times shown on the front end?
With the above it sounds like a theme conflict. Which version of Januas are you using? |
|
|
I’m using a januas child based on Januas 1.39 |
Do you have any custom functions added to the child theme’s functions.php file or is the child theme only adding changes like CSS changes? |
|
|
yes, I have a functions.php file added to the child theme. I can have you sent the file. |
Does your functions.php file in the child theme make use of the date_default_timezone_set() function? One way to quickly check to see if the Child theme is causing the issue is you activate the Januas parent theme only, then check the dates and times. |
|
|
No, my functions.php is not using the date_default_timezone_set() function. If I activate the Januas parent theme, then I’m not able to access events from EE. |
You probably need to refresh your site’s permalinks after switching to the Januas theme because the Januas theme changes Event Espresso’s event slug to ee-events. That’s because Januas adds an event custom post type that also uses the |
|
The support post ‘Problem showing events correct time in front-end’ 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.