Support

Home Forums Event Espresso Premium Time zone issue

Time zone issue

Posted: December 13, 2019 at 6:46 pm


Vincent

December 13, 2019 at 6:46 pm

When we look at our General Settings page we can see our “Time and Date Setting” displaying about 7 hours and 40 minutes ahead of our actual current time. However, when we click on “Change Time Zone and Date Format Settings?” it displays our correct Time Zone of Los Angeles. When we click on one of our Calendar Events and view the time zone it’s also set correct to Los Angeles Time Zone.

For some reason we can’t get the time to display correctly even though it’s set to the correct time zone. This is causing our events to close many ours before the specified time. We tried deactivating the Plugin for Event Espresso and Event Espresso Calendar and reactivating it, still didn’t work.

Please help

Thank you,

Save A Heart CPR


Vincent

December 13, 2019 at 6:59 pm

Sorry, we failed to mention that the time has always been correct and just all of a sudden gave us this issue. The events are working fine, it’s just the time that is almost 8 hrs ahead for some reason and were unable to get it to display properly despite the setting being correct of Los Angeles.


Tony

  • Support Staff

December 16, 2019 at 3:16 am

Hi there,

WordPres 5.3+ introduces some DateTime fixes which conflicts with how many plugins were/are handling datetimes, EE3.1.37.16.P conflicted with those changes and we fixed those in v3.1.37.17.P.

I can see your site is currently running v3.1.37.17.P but it’s not clear if the update was in place when you opened the above thread.

So may I ask, are you still running into this issue with the above version?


Vincent

December 17, 2019 at 12:42 pm

The updates had been done before we opened the thread, the only thing that won’t update is a theme that we have but it’s not the current one we are using anyways. All of our events are showing correct times but are closing 8 hours early because of the time zone issue. As we said, its set to Los Angeles time zone but it shows 8 hrs ahead for some reason.


Josh

  • Support Staff

December 17, 2019 at 1:01 pm

Hi,

May I ask are there any other calendar or event plugins on the site? It may be the timezone is getting reset for when it calculates when to end registration. The dates and times of the events themselves are accurate on the front and admin of the site, correct?


Vincent

December 17, 2019 at 1:53 pm

Yes everything shows correct with times on the events on our course calendar. It’s just the time setting under General Setting that isn’t correct, it shows Los Angels time zone but is 8 hrs ahead. We have Event Espresso 3.1.37.17 p and Event Espresso Calendar 2.2.8 p with Formidable Forms 4.03.05 p.

I have already tried deactivating the plug-ins and then reactivating them and it did not fix it.


Josh

  • Support Staff

December 17, 2019 at 2:01 pm

The Time displayed under Event Espresso > General Setting will not be correct until the next version is released. That in of itself isn’t breaking things though.

The important thing in this case is the event registration closing 8 hours too early. That’s not easily troubleshooted by deactivating other plugins on the site, unless if you happen to have an event that’s closed for registrations right now, but should still be open.


Vincent

December 17, 2019 at 2:20 pm

We have events set to close the night before at 7 pm if nobody is registered in them. Usually they still show on the calendar after they close and when people click on the event it tells them it’s closed to registration, instead it falls off the calendar completely before the 7 pm closing time. When I look at the event on the website it shows open but doesn’t display live. If I change the closing date to the actual class date and put the time to the start of the course then it pops back up live. It’s becoming an issue if we don’t catch it or reset it in time before it closes


Josh

  • Support Staff

December 19, 2019 at 2:34 pm

Thanks for mentioning the detail about the event falling off the calendar too early. That’s something we can fix in the next update to the calendar add-on.

In the meantime if you want to apply the same fix to your installed copy of the calendar add-on, you can open its espresso-calendar.php file and make the following change to line 457:

Change this:
$today = date( 'Y-m-d' );

to this:
$today = current_time( 'Y-m-d' );


Vincent

December 19, 2019 at 6:09 pm

Hello Josh,

Thank you for the information, we appreciate it. I’m sorry to sound like such a novice individual but I’m not sure where to go and change that particular line 457 your talking about. I tried clicking on the Event Espresso Calendar Plugin and no numbered lines show to make this change. Could you please tell me where I can find this to make the change and update our calendar?

Thanks again for all your help!


Josh

  • Support Staff

December 19, 2019 at 6:28 pm

WordPress has a built-in Plugin editor, in Plugins > Plugin Editor. There you could select the calendar plugin and that will open the file to edit.

However, the above process isn’t recommended compared to using a file editor outside of WordPress. The recommended approach would be to log in to your host’s control panel (sometimes called c-panel) and use its file manager.

The location of the WordPress plugins folder on a WordPress site is typically within the wp-content folder. So if you can log into your hosting account’s control panel, you open the file editor, then open
/wp-content
/plugins
/espresso-calendar
espresso-calendar.php

and make the edit to line 457


Vincent

December 24, 2019 at 4:41 pm

Hello Josh,

I have changed the information you mentioned above and will monitor our website to see if it fixed our problem. I will get back to you after the holidays and let you know if it’s fixed so we can close this ticket. Thank you very much for all of your help. we appreciate it.

The support post ‘Time zone issue’ 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