eZ Community » Forums » eZ Platform » Date field: Timezone difference...
expandshrink

Date field: Timezone difference between legacy backend and ezplatform frontend

Date field: Timezone difference between legacy backend and ezplatform frontend

Monday 26 June 2017 3:29:49 pm - 2 replies

Hi,

i'm using ezplatform 1.7 with legacy bridge and the legacy backend. When a date field is set in the legacy backend, e.g. 2017/07/13, ez_render_fields outputs "2017/07/12" in frontend.

When using a datetime field, the time difference is 2 hours.

A dump of ez_field_value outputs the following:

Value {#12603+date: DateTime {#12605+"date": "2017-07-13 00:00:00.000000"+"timezone_type": 1+"timezone": "+00:00"}+stringFormat: "l d F Y"}

php.ini timezone is set to "Europe/Berlin", legacy site.ini timezone is set to "Europe/Berlin" too.

Thanks for your help happy.gif Emoticon

Tuesday 09 January 2018 6:13:40 pm

Hi Daniel,

I have the same problem.

Did you find a good solution?

It works if I use the string instead of the DateTime object, but I don't think it's a good solution.

Thanks.

Tuesday 16 January 2018 10:01:58 pm

The reply has been removed because of violation of forum rules.

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from