Add hours to clock due to servers in other time zone

Author Message

Valentin Svelland

Wednesday 08 October 2003 12:15:26 pm

Anyone know how to easily add 6 hours to the timestamps in eZ Publish 3.2?

I've installed this magnificent cms on my american servers, but I live in Norway and my articles timestamps are all messed up.. :)

------------------------
I made eZ run on www.eigersund.kommune.no, bjerkreim.kommune.no, lund.kommune.no and sokndal.kommune.no. Municipalities should use open source!

Thomas Schamm

Thursday 09 October 2003 4:02:40 am

Hi Valentin,
i hope this will help you:

http://www.ez.no/developer/ez_publish_3/documentation/customization/tips_tricks/date_and_time_formats

You have to change in your /share/local language ini file the time/date format to %O = -0x00, where x is the difference to Greenwich time (GMT) in hours.
Greetz, Thomas

Valentin Svelland

Friday 10 October 2003 12:09:17 am

Thanks! Tried this out a bit, but I can't seem to get the syntax quite right.. Anyone got practical examples of adjusted timedate in /share/local language ini file ? How do I add 6 hours to this:

DateTimeFormat=%d. %F %Y %H:%i:%s

------------------------
I made eZ run on www.eigersund.kommune.no, bjerkreim.kommune.no, lund.kommune.no and sokndal.kommune.no. Municipalities should use open source!

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 31 2025 04:32:26
Script start
Timing: Jan 31 2025 04:32:26
Module start 'layout'
Timing: Jan 31 2025 04:32:26
Module start 'content'
Timing: Jan 31 2025 04:32:27
Module end 'content'
Timing: Jan 31 2025 04:32:27
Script end

Main resources:

Total runtime1.3682 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.0071 588.3750151.2422
Module start 'layout' 0.00710.0034 739.617236.7109
Module start 'content' 0.01051.3569 776.3281926.0313
Module end 'content' 1.36740.0008 1,702.359411.7969
Script end 1.3682  1,714.1563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2501160.0002
Check MTime0.00140.1055160.0001
Mysql Total
Database connection0.00100.072610.0010
Mysqli_queries1.307695.5721570.0229
Looping result0.00060.0403550.0000
Template Total1.320296.520.6601
Template load0.00230.169120.0012
Template processing1.317996.322220.6589
Template load and register function0.00130.093810.0013
states
state_id_array0.00200.145510.0020
state_identifier_array0.00150.110420.0008
Override
Cache load0.00190.1417160.0001
Sytem overhead
Fetch class attribute can translate value0.00050.039720.0003
Fetch class attribute name0.00210.153540.0005
XML
Image XML parsing0.00270.196620.0013
class_abstraction
Instantiating content class attribute0.00000.000750.0000
General
dbfile0.00320.2352160.0002
String conversion0.00000.001140.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs