Home Forums Community Forum Changes to date times do not stick

Changes to date times do not stick

Posted: February 23, 2015 at 6:20 pm


February 23, 2015 at 6:20 pm

I have the same problem addressed in these topics:
(when resaving/updating an event, the dates of both the Event tickets and datetimes change by 7 hours each time I resave the event)

I found my conflicting plugin to be WP-Statistics
I contacted the developers of this plugin and they say:

I would suggest you talk to the other plugin developer,
date_default_timezone_set() is a commonly used function and they should not have an issue with us using it.

So what shall I do?

Thanks in advance.


  • Support Staff

February 24, 2015 at 10:39 am

Hi Stevestaso,

date_default_timezone_set() may well be a commonly used function within PHP, however using it within WordPress is discouraged.

Here are the links I provided in my previous reply that you linked to:

As far as I know, WordPress expects the default timezone to be UTC. Within wp-settings.php WordPress does the same thing but sets the timezone to UTC:

date_default_timezone_set( 'UTC' );

All times/dates are then calculated based on UTC and the offset is calculated based on the timezone you set within WP settings.

Setting the default timezone to a timezone other than UTC will have unexpected results with not just Event Espresso but any plugin that correctly uses date and times within WordPress. It is more evident within Event Espresso than some other plugins due to the fact that everything revolves around dates.

The support post ‘Changes to date times do not stick’ 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.

If you would like help from the Event Espresso staff, then please purchase a support license right now so you can create a support topic in our premium support forums.

Status: closed

Updated by  Tony 4 years, 11 months ago ago

Topic Tags



This topic is: not resolved
Do NOT follow this link or you will be banned from the site!