Page 1 of 1

timezone offset

Posted: Thu 20. Sep 2007, 14:43
by StudioZ
I have a customer who is set on a server where
the timezone has one hour offset.

Of course, the server time cannot be set on a per account basis.
But... was ondering if there's anychance such a function (below) could be
easily integrated in PhpWCMS, through the config file ....

If you are using time functions you will have to set the timezone offset in your scripts.

/////////////////////
For example in php
putenv('TZ=EST5EDT'); // eastern time
then all time functions will be in that time zone
/////////////////////

Cheers,

Yves

Posted: Thu 20. Sep 2007, 14:48
by flip-flop
Mhhh, I don“t know about the function, but in the 1.3.5 trunk there is a switch in conf.inc.php: $phpwcms['timezone_GMT'] = '+1';
Have a look into the dist.conf.inc.php not the setup.conf.inc.php!!
http://www.phpwcms.org/snapshot/

Knut

Posted: Thu 20. Sep 2007, 15:02
by StudioZ
Thank you FlipFlop for pointing me to this switch. 8)
I overlooked it. I just tested it on a local 1.3.5 trunk version, and...
no effect yet. Probably not finished yet.

Will have to wait hope and see ... :roll: :wink:

Thanks,

Yves