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.

eZ debug

Timing: Jan 18 2025 10:53:16
Script start
Timing: Jan 18 2025 10:53:16
Module start 'layout'
Timing: Jan 18 2025 10:53:16
Module start 'content'
Timing: Jan 18 2025 10:53:17
Module end 'content'
Timing: Jan 18 2025 10:53:17
Script end

Main resources:

Total runtime1.0220 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 589.0469152.6250
Module start 'layout' 0.00620.0028 741.671939.4453
Module start 'content' 0.00901.0115 781.1172539.5391
Module end 'content' 1.02050.0015 1,320.656312.4844
Script end 1.0220  1,333.1406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.3537160.0002
Check MTime0.00160.1606160.0001
Mysql Total
Database connection0.00090.091010.0009
Mysqli_queries0.939191.8918570.0165
Looping result0.00060.0567550.0000
Template Total0.982996.220.4915
Template load0.00230.225920.0012
Template processing0.980695.949220.4903
Template load and register function0.00020.024110.0002
states
state_id_array0.00110.105710.0011
state_identifier_array0.00170.166420.0009
Override
Cache load0.00170.1710240.0001
Sytem overhead
Fetch class attribute can translate value0.00150.147020.0008
Fetch class attribute name0.00210.201240.0005
XML
Image XML parsing0.01621.580320.0081
class_abstraction
Instantiating content class attribute0.00000.001240.0000
General
dbfile0.01971.9315180.0011
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs