Tobin Richard wrote:
I just upgraded a wiki down here in Oz and the timestamp for article edits is now wrong. I thought there was somewhere in the config files where the servers timezone could be set but I couldn't find it. If it cant be set then would it be possible to set the default timezone offset for all users (since just about all of them are east coast Australians?
There was some inconsistent treatment of timezones, where sometimes server time was assumed to be UTC and sometimes not. A while ago I went through and fixed it all to use the gmdate() function to be consistent.
You can set the default timezone exposed to users who haven't set a custom tz offset like this (extract from LocalSettings.php for the German wikipedia, which exposes European timezone by default, since the entire target audience is there):
# Ugly hack warning! This needs smoothing out. $wgLocaltimezone = "Europe/Berlin"; $oldtz = getenv("TZ"); putenv("TZ=$wgLocaltimezone"); $wgLocalTZoffset = date("Z") / 3600; putenv("TZ=$oldtz");
This timezone will be used to mark ~~~~ signatures for everyone, and times in recentchanges, history etc etc for people who enter nothing in the timezone offset options.
Upload & deletion logs will probably still be listed in UTC if I recall the system correctly.
Your system may or may not vary, but on our machine the available timezone settings for Oz are:
Australia/ACT Australia/Adelaide Australia/Brisbane Australia/Broken_Hill Australia/Canberra Australia/Darwin Australia/Hobart Australia/LHI Australia/Lindeman Australia/Lord_Howe Australia/Melbourne Australia/North Australia/NSW Australia/Perth Australia/Queensland Australia/South Australia/Sydney Australia/Tasmania Australia/Victoria Australia/West Australia/Yancowinna
-- brion vibber (brion @ pobox.com)