Posted: March 1, 2013 at 11:59 am
|
I’m having issues with timezones.. We are in Los Angeles and we have the WordPress general settings set to LA, however, in Event Espresso General Settings, the current time is set to UTC time, not our local time. However, when looking at the actual event editor, the time listed is set our local time. What is happening is our registration closing times is set almost 7 hours earlier because it’s referencing the time set in EE General Settings, not our local time. Any suggestions? |
Hi Luis, The Event Espresso Time and date settings will pull from what’s set in the WordPress general settings. It sounds like the WP general settings are set to UTC. I would suggest going to /wp-admin/options-general.php and try setting the timezone so it says “Los Angeles” then saving the changes. After this, you can go to /admin.php?page=event_espresso and re-save the settings there. |
|
|
As you can see from my screen shots, my general.php is set to Los Angeles .. The actual event editor sees the right local time .. As an example I set the reg end time for an event one hour later from our current time and you can see that the event is now closed. As you can see on the last screen shot, EE settings shows the wrong local time, and this where the issue is. EE settings is not saving the right time… That time is actually UTC time. |
Hi Luis, It might help to explain that Event Espresso settings do not save the timezone, it’s using a timezone setting that is set elsewhere. I’m not sure why this is being overridden on your site, but you could try adding this near the top of your wp-config.php file ( just below the opening php tag) and it might make a difference:
|
|
|
I’m having the same issue. Events are expiring hours before the start. Tried adding date_default_timezone_set(‘America/Los_Angeles’); to line 2 of wp-config.php but it didn’t make a difference. Please let us know asap if you have any other suggestions. |
Hi June, The time zone can also be set in the php.ini file: http://php.net/manual/en/datetime.configuration.php You might not have access to the php.ini file on your server, so you might need to contact your host’s support and ask them to update the timezone for you. |
|
|
I have all access to my php.ini since we are hosting on own server via the cloud. I’ve attempted to set timezone on the server itself and still no luck. I think it’s a plugin issue. Time shows up correctly everywhere else except for in the general EE settings.. On the event editor it looks fine and everything else on our install works fine with the timezone. |
|
Both the general settings and the event editor time reporting use the exact same line of code:
Do you have custom timezones enabled for your events? Under general settings, look for “Use a custom time zone for each event?” |
The support post ‘Timezone Issues with current time set to UTC’ 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.