Timezone doesn't work

Author Message

Matthew Carroll

Tuesday 02 October 2007 8:44:37 pm

I've set timezone in site.ini as per http://ez.no/doc/ez_publish/technical_manual/3_9/reference/configuration_files/site_ini/timezonesettings/timezone but the following code produces the date in the server's timezone, not the ini setting timezone:

{currentdate()|datetime( 'custom', '%F %j, %Y' )}

Any ideas what I'm missing? How can I generate the current date as per the ini setting?

Thanks
Matthew

http://carroll.org.uk

paul bolger

Tuesday 02 October 2007 9:17:21 pm

Paul Bolger

Matthew Carroll

Tuesday 02 October 2007 9:32:52 pm

Thanks Paul. I read that link you posted. Unfortunately that's not an option, as this ez codebase is shared by a number of sites, not all of which are for the same timezone.

Seems to me there isn't much point having a timezone setting if ez doesn't use it. (Or maybe it does other things with it?)

http://carroll.org.uk

paul bolger

Thursday 18 October 2007 3:30:26 pm

Hi Matthew

This works for me. (ezpublish 3.9.3 and 3.10.0)

/settings/override/site.ini.append.php

[TimeZoneSettings]
TimeZone=Australia/Darwin

Paul Bolger

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