Support

Home Forums Event Espresso Premium Problem showing events correct time in front-end

Problem showing events correct time in front-end

Posted: March 17, 2017 at 5:21 am

Viewing 14 reply threads


ardiaful

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.


Tony

  • Support Staff

March 17, 2017 at 8:39 am

Hi there,

Generally issues with datetimes being displayed correctly are caused by another plugin (or the theme) incorrectly using date_default_timezone_set() to change the server timezone.

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?


ardiaful

March 17, 2017 at 11:59 am

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.


ardiaful

March 17, 2017 at 2:44 pm

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.


Josh

  • Support Staff

March 17, 2017 at 5:57 pm

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.


ardiaful

March 26, 2017 at 3:46 pm

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.


ardiaful

March 26, 2017 at 3:53 pm

I changes theme from Januas child to Twenty Fifteen, and the problem with event date times does not appear.


ardiaful

March 26, 2017 at 4:24 pm

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.


Tony

  • Support Staff

March 27, 2017 at 5:27 am

I changes theme from Januas child to Twenty Fifteen, and the problem with event date times does not appear.

So switching away from Januas ‘fixes’ the dates/times shown on the front end?

As I said before I have tried to deactivate all plugins, but still event date times error shows.

With the above it sounds like a theme conflict.

Which version of Januas are you using?


ardiaful

March 27, 2017 at 5:53 am

I’m using a januas child based on Januas 1.39


Josh

  • Support Staff

March 27, 2017 at 12:37 pm

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?


ardiaful

March 27, 2017 at 12:55 pm

yes, I have a functions.php file added to the child theme. I can have you sent the file.


Josh

  • Support Staff

March 27, 2017 at 1:42 pm

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.


ardiaful

March 27, 2017 at 2:32 pm

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.


Josh

  • Support Staff

March 27, 2017 at 3:16 pm

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 events slug.

Viewing 14 reply threads

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.

Event Espresso