Thanks Brion,
Would you know where I find TZ for whatsoever place/state I need? For instance, instead of Berlin, let's say I need a sitewide default timezone TZ for California/USA, or São Paulo/BR.
I don't think I could go ahead and make up some thing like: putenv("TZ=USA/California"); Or putenv("TZ=Brazil/São Paulo"). Couldn't I?:)
Thanks a lot, mauro.
-----Original Message----- From: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of Brion Vibber Sent: Tuesday, December 27, 2005 3:28 PM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] time zone for ~~~~
Mauro do Carmo wrote:
I have set up $wgLocaltimezone and I get it right; when I save a page, it takes the time I've set up in $wgLocaltimezone.
However, when I assign a page with ~~~~, my signature always takes the CST (Central Standard Time); and unfortunately that doesn't work for me.
Does someone know where should I set up, in order to get the local PC time into my signatures?
Signatures use the system's configured timezone. On Unix/Linux you can generally set this by changing the TZ environment variable in LocalSettings.php, for instance:
putenv("TZ=Europe/Berlin");
A sitewide default timezone is used here rather than the individual user's preference or local version to keep things consistent. If you have a page full of signatures, and they're all in different timezones, it's pretty hard to mentally keep track of what was before what.
-- brion vibber (brion @ pobox.com)