timezone offset

Discuss phpwcms here, please do not post support requests, bug reports, or feature requests! Non-phpwcms questions, discussion goes in General Chat!
Post Reply
User avatar
StudioZ
Posts: 802
Joined: Fri 28. May 2004, 19:57
Location: Québec, Canada
Contact:

timezone offset

Post 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
Image
PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post 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
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
StudioZ
Posts: 802
Joined: Fri 28. May 2004, 19:57
Location: Québec, Canada
Contact:

Post 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
Image
PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!
Post Reply