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.