Support

Home Forums Event Espresso Premium incorrect time on website

incorrect time on website

Posted: February 23, 2019 at 12:52 pm


Pauli29

February 23, 2019 at 12:52 pm

How is that possible?<br /><br />
datetimes of event 2423 in the db.
<br /><br />
Datetimes of event 2423 on the website.


Tony

  • Support Staff

February 25, 2019 at 4:13 am

Hi there,

Can you link me to an event so I can take a look over the sit, please?

The above can happen if another plugin is using date_default_timezone_set() incorrectly which alters the time zone on the server which is not expected by WordPress (and therefore Event Espresso).

Do you have any other plugins that deal with dates? If so try temporally disabling that plugin and retesting.


Pauli29

February 25, 2019 at 4:22 am

http://80.120.1.163/kurse/boogie-woogie-rocknroll-grundkurs-teil-1-basisfiguren-und-kombinationen/

is the event from the screenshot.


Pauli29

February 25, 2019 at 5:04 am

Strange is also, that on the db all dates have the same time, but on the website the time from date 6-9 is different?


Tony

  • Support Staff

February 25, 2019 at 5:16 am

is the event from the screenshot

That link returns 404 for me.

As does http://80.120.1.163/kurse/

and http://80.120.1.163/ shows a weather site.

Strange is also, that on the db all dates have the same time, but on the website the time from date 6-9 is different?

They have different datetimes, which can effect times. DST for example.

If you go to Dashboard -> Settings -> General.

What is your ‘Timezone’ set to?


Pauli29

February 25, 2019 at 5:44 am

I just check the url for extern access.
My timxezone is set to Wien (Vienna).
It is clear for me, that every entry has his own datetime. But as you can see on first screenshot,the time of each datetime entry in the db is the same.


Tony

  • Support Staff

February 25, 2019 at 6:39 am

It is clear for me, that every entry has his own datetime. But as you can see on first screenshot,the time of each datetime entry in the db is the same.

I meant date, not datetimes. (Sorry, datetimes on the brain).

The times change when Daylight Savings Time occurs.

Did you check for any plugins that use dates as above?

One troubleshooting step you can take is to install the Health Check plugin.

Then go to WP → Dashboard → Heath Check → Troubleshooting. There you’ll Enable Troubleshooting Mode, then once that’s activated you’ll reactivate Event Espresso only via the Health Check’s Troubleshooting item in the WP admin bar.

At that point, can you check to see if the issue persists?


Pauli29

February 25, 2019 at 9:07 am

Ob I regognized the plugin Divi Display Logic as the reason for difference of +1 hour.
But I still could not find the problem for following 2 poincts:
* The last 4 dates have a further difference of +1 hour.
* The price is displayed with 0 (not at all events).


Tony

  • Support Staff

February 25, 2019 at 9:12 am

* The last 4 dates have a further difference of +1 hour.

Its Daylight Saving Time, the DATE of the datetime is also affecting the time.

* The price is displayed with 0 (not at all events).

I still can’t view the site you linked to so I can’t see your events.


Pauli29

February 25, 2019 at 9:42 am

How does DST affects displayed time? Does that mean after the change to DST the time is displaye correct on the website? Or must I consider DST at saving the dates?
Do you know the plugin Divi display logic? Because I need it.


Pauli29

February 25, 2019 at 3:44 pm

ok the point with DST I solved.
But I not sure if the problem is caused by Divi Display Logic or by EE4. Because I need booth plugins.
Furthermore I could not find the reason, why the price of a lots of tickets is displayed with 0.
The problem the site http://www.citydance-meisner.at at the moment only could be reached with a host entry to 80.120.1.163


Pauli29

February 25, 2019 at 3:46 pm

http://www.citydance-meissner.at link to 80.120.1.163


Tony

  • Support Staff

February 26, 2019 at 4:34 am

But I not sure if the problem is caused by Divi Display Logic or by EE4. Because I need booth plugins.

Re-enable the plugin, do no visit the event editor with that plugin enabled and view the event times, are they correct or incorrect again?

Create a NEW test event (with the plugin active) and on publish, do the dates on the frontend/admin match up?

Furthermore I could not find the reason, why the price of a lots of tickets is displayed with 0.

If you don’t have a price set on your tickets they will show up as 0 but I need to view your event to see what you mean….

The problem the site http://www.citydance-meisner.at at the moment only could be reached with a host entry to 80.120.1.163

http://www.citydance-meissner.at link to 80.120.1.163

Ok, now I can view the site.

Which event should I be looking at to see this?

For example I see many of the ticket on this event:

http://www.citydance-meissner.at/kurse/paaretanzkurs-der-gesellschaftstaenze-grundkurs-teil-2/

Have no price, should they?

If so can you take a screenshot of the datetime & ticket editor within the event editor so I can view those?


Pauli29

February 28, 2019 at 7:20 am

As soon as I reactivate the plugin, all times are incorrect (+1 hour).
Also a new created testevent (in category “Brautpaare”).


Tony

  • Support Staff

March 1, 2019 at 3:53 am

As soon as I reactivate the plugin, all times are incorrect (+1 hour).

That likely means that the plugin is using date_default_timezone_set() to change the server’s timezone to something other than UTC+0. WordPress (and therefor EE) expects the server’s timezone to remain UTC+0 and it’s not something we can work around.

I don’t use Divi, nor that plugin, but if you’d like to send me a copy of the plugin I’ll confirm if that’s the problem. Note I will not fix the plugin, you’ll need to contact the plugin author to fix it.


Pauli29

March 1, 2019 at 4:14 am

How can I send you the plugin?


Tony

  • Support Staff

March 1, 2019 at 4:27 am

Host the zip file anywhere you prefer and post the link here.

You can set your post to private so it won’t be publicly visible if preferred.


Pauli29

March 1, 2019 at 4:51 am

This reply has been marked as private.


Pauli29

March 1, 2019 at 7:20 am

This reply has been marked as private.


Pauli29

March 1, 2019 at 7:26 am

This reply has been marked as private.


Tony

  • Support Staff

March 1, 2019 at 7:30 am

Confirmed – https://monosnap.com/file/pV69NX2FwNZVBGPZSY715LGoffX8Fh

That plugin sets the servers timezone to whatever you have set in the dashboard (that’s not expected and is incorrect)

See: https://vip.wordpress.com/documentation/vip-go/use-current_time-not-date_default_timezone_set/

The support post ‘incorrect time on website’ 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