Support

Home Forums Event Espresso Premium Time / Timezone issue at different places

Time / Timezone issue at different places

Posted: April 21, 2017 at 10:35 pm


Alana

April 21, 2017 at 10:35 pm

Hello EE4,

We are facing time issue of event start date and end date.

I have changed timezone from general setting to Australia/Sydney.

In a listing of event , event start date is different then the start date that is visible when we edit.

Even in receipt, the time is different.

Please review screenshot.
Screenshot 1 is of editor screen
Screenshot 2 is front page of Event

Both above screenshot having same time and its fine.

But other two screeshot , i.e. order receipt and listing shows different time.

Screenshot 1: https://drive.google.com/a/elsner.in/file/d/0B8axfGCSA-zYX0VnbFY0d2F0N00/view?usp=drivesdk
This is right.

Screenshot 2: https://drive.google.com/a/elsner.in/file/d/0B8axfGCSA-zYbXluMU8yRUhwZ0E/view?usp=drivesdk
This is right.

Screenshot 3: https://drive.google.com/a/elsner.in/file/d/0B8axfGCSA-zYWTRpNk5YSXVaUWc/view?usp=drivesdk
Shows wrong time.

Screenshot 4: https://drive.google.com/a/elsner.in/file/d/0B8axfGCSA-zYVENuV244UDNGNGs/view?usp=drivesdk
Here also it show wrong time

Please provide the solution.

Thanks


Josh

  • Support Staff

April 24, 2017 at 9:31 am

Hi Vince,

The solution for this around 80% of the time is you find the plugin that’s causing a conflict, and either disable the plugin or fix it. This is because some plugins use the date_default_timezone_set() function, which has the unintended effect of resetting the timezone in different places of your WordPress website.

When you find the plugin that’s causing the issue, you can share this information with the developer of that plugin:

https://vip.wordpress.com/documentation/vip-development-tips-tricks/use-current_time-not-date_default_timezone_set/

https://weston.ruter.net/2013/04/02/do-not-change-the-default-timezone-from-utc-in-wordpress/


Alana

May 5, 2017 at 12:19 am

Hi Josh,

We have deactivated all other plugins. We have Activate only Event Espresso. See below screenshot.
https://drive.google.com/a/elsner.in/file/d/0Byc_e_Ief8vRNjkwQTktT1dva2M/view?usp=drivesdk

I have updated an Event that is Highlighted in below screenshot. Then refreshed the Event Listing page in admin.Still the issue exists. Please check screenshot.
Event Listing Screenshot: https://drive.google.com/a/elsner.in/file/d/0Byc_e_Ief8vRcHRHRm43UTJ1MW8/view?usp=drivesdk
Event Edit Screenshot: https://drive.google.com/a/elsner.in/file/d/0Byc_e_Ief8vRRlhjNHFvSEdlWDg/view?usp=drivesdk

Date and Time in both screenshot is different.
I don’t think its a conflict issue with something else. Do you think so?
Please help me out in solving this issue.

Thanks


Alana

May 5, 2017 at 1:35 am

Hi josh, I have sorted out something.
Admin is proper now i.e. Both listing and Edit Screen shows proper time.
https://drive.google.com/a/elsner.in/file/d/0Byc_e_Ief8vRcC1yb3NqT2dIVEU/view?usp=drivesdk

But the array we are getting shows something different in front.
https://drive.google.com/a/elsner.in/file/d/0Byc_e_Ief8vRcXQxVk9YaWdIc28/view?usp=drivesdk

Now how this is possible?

Please help me out.


Alana

May 5, 2017 at 3:20 am

Hi josh,

https://drive.google.com/a/elsner.in/file/d/0Byc_e_Ief8vRUnJOODlTS3BVOFE/view?usp=drivesdk

ics file also shows different time. It must shows 6:30 istead it showing 2

Please !!


Josh

  • Support Staff

May 5, 2017 at 12:54 pm

Hi Vince,

But the array we are getting shows something different in front.

Event Espresso (and WordPress) store timestamps in the database as UTC, then apply the offset from the local timezone where ever times are displayed. So the [DTT_EVT_start] field from your screenshot is actually correct, that’s a representation of the raw data from the database.

With regards to you ical times not being synced, can you post a link to the event page so we can investigate further?

The support post ‘Time / Timezone issue at different places’ 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