Set date and time

Author Message

Benoit Vodkaster

Monday 21 September 2009 10:12:24 am

Hi everybody

I'm running ezPublish 4.0.1 on a Debian machine

The server date and time are set to the correct values - as well as the mySQL date and time i.e. the Europe/Paris timezone

However, all object creation & modification times in eZ are set to this timezone MINUS 2 hours
(eg when I create an object at 5pm, eZ displays the object creation date as 3pm)

I've put the following lines in my site.ini.append.php

[TimeZoneSettings]
TimeZone=Europe/Paris

but it does not change anything

Am I missing something ?
Thanks very much in advance

Benoit

Robin Muilwijk

Monday 21 September 2009 11:02:26 am

Hi Benoit,

Check out http://ez.no/developer/forum/install_configuration/timezone_on_php5_strict_standards_strtotime_solved

It mentions adding/defining your timezone in your php.ini file. I solved a similar problem by adding the following in my local php.ini file:

;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;

[Date]
; Defines the default timezone used by the date functions
date.timezone = "Europe/Amsterdam"

Regards Robin

Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.

LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk

Benoit Vodkaster

Tuesday 22 September 2009 10:19:43 am

It works fine

Thanks a lot Robin

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.