Hi all,
I've successfully got a MediaWiki up and running (version 1.8.2) and I've set the correct timezone in my user preferences. All the history pages and everything show the correct time, however when I sign a page with ~~~~ the time that comes up is an hour ahead of my localtime.
I've searched the archives but I couldn't find any solutions to this, so I was wondering whether anyone might know where to start looking.
Thanks, Adam.
On 28/01/07, Adam Nielsen a.nielsen@shikadi.net wrote:
I've successfully got a MediaWiki up and running (version 1.8.2) and I've set the correct timezone in my user preferences. All the history pages and everything show the correct time, however when I sign a page with ~~~~ the time that comes up is an hour ahead of my localtime.
Without additional configuration, the time shown in signatures, etc. will be in UTC as this is saved into the page content and isn't processed per-user.
I say "without additional configuration" because there are some configuration variables which deal with timezone offsets on the server side, and these will alter various aspects of date/time handling.
Rob Church
Without additional configuration, the time shown in signatures, etc. will be in UTC as this is saved into the page content and isn't processed per-user.
That's odd then - UTC is 2007-01-28 02:30, my local time is GMT+10 (2007-01-28 12:30) and the time appearing in my signatures is 2007-01-28 13:30.
I say "without additional configuration" because there are some configuration variables which deal with timezone offsets on the server side, and these will alter various aspects of date/time handling.
Ah yes, I had a look through DefaultSettings.php and I see there's a variable for signature times. This was set to null (meaning the OS default) however the OS was configured for GMT+10 and the signatures were appearing as GMT+11 ("EST"). I changed this to "GMT" in LocalSettings.php and all the signatures are now correctly displaying GMT times.
Thanks for your help!
Cheers, Adam.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Rob Church wrote:
On 28/01/07, Adam Nielsen a.nielsen@shikadi.net wrote:
I've successfully got a MediaWiki up and running (version 1.8.2) and I've set the correct timezone in my user preferences. All the history pages and everything show the correct time, however when I sign a page with ~~~~ the time that comes up is an hour ahead of my localtime.
Without additional configuration, the time shown in signatures, etc. will be in UTC as this is saved into the page content and isn't processed per-user.
Signature times are shown in server time, not UTC, by default. (Server time may of course be UTC, and ought to be. ;)
If your server is in a different time zone from your audience, you may want to customize it.
- -- brion vibber (brion @ pobox.com / brion @ wikimedia.org)
mediawiki-l@lists.wikimedia.org