Forums / Install & configuration / Set date and time

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Set date and time

Author Message

Benoit Vodkaster

Monday 21 September 2009 10:12:24 am

Hi everybody

I'm running Exponential 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