[Mediawiki-l] how to set time zone?
Rotem Liss
mail at rotemliss.com
Wed May 10 12:54:34 UTC 2006
Some documentation from includes/DefaultSettings.php:
/**
* Fake out the timezone that the server thinks it's in. This will be used for
* date display and not for what's stored in the DB. Leave to null to retain
* your server's OS-based timezone value. This is the same as the timezone.
*
* This variable is currently used ONLY for signature formatting, not for
* anything else.
*/
# $wgLocaltimezone = 'GMT';
# $wgLocaltimezone = 'PST8PDT';
# $wgLocaltimezone = 'Europe/Sweden';
# $wgLocaltimezone = 'CET';
$wgLocaltimezone = null;
/**
* Set an offset from UTC in hours to use for the default timezone setting
* for anonymous users and new user accounts.
*
* This setting is used for most date/time displays in the software, and is
* overrideable in user preferences. It is *not* used for signature timestamps.
*
* You can set it to match the configured server timezone like this:
* $wgLocalTZoffset = date("Z") / 3600;
*
* If your server is not configured for the timezone you want, you can set
* this in conjunction with the signature timezone and override the TZ
* environment variable like so:
* $wgLocaltimezone="Europe/Berlin";
* putenv("TZ=$wgLocaltimezone");
* $wgLocalTZoffset = date("Z") / 3600;
*
* Leave at NULL to show times in universal time (UTC/GMT).
*/
$wgLocalTZoffset = null;
Therefore, the change in $wgLocaltimezone will only influence the
signature (it *should* also influence the magic words, but it doesn't;
see http://bugzilla.wikimedia.org/show_bug.cgi?id=5727); you should also
change $wgLocalTZoffset to influence the other parts of the interface,
including the "lastmodified" line.
If you type "~~~~~" in the Main Page, preview it, and get the right
timezone - you've configured $wgLocaltimezone right.
Gart, Mitchell wrote:
>At the bottom of pages, the modification date is in GMT and not my local
>time zone:
>
> This page was last modified 19:57, 9 May 2006.
>
>- Mitch
>
>
>
>
>
>>From: "Todd Pederzani" <todd.pederzani at gmail.com>
>>Subject: Re: [Mediawiki-l] how to set time zone?
>>To: "MediaWiki announcements and site admin list"
>> <mediawiki-l at wikimedia.org>
>>Message-ID:
>> <9cada95c0605090951u322ebd4bx5f3dbbb69190203a at mail.gmail.com>
>>Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>>
>>On 5/9/06, Gart, Mitchell <MGart at kronos.com> wrote:
>>
>>
>>>it didn't do anything.
>>>
>>>
>>Where are you looking for the change? Per my read of the
>>documentation, the
>>only display of time this affects is the one in the --~~~ signatures.
>>
>>--
>>Todd Pederzani
>>todd.pederzani at gmail.com
>>
>>
>_______________________________________________
>MediaWiki-l mailing list
>MediaWiki-l at Wikimedia.org
>http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>
>
>
--
#define Name RotemLiss
#define Mail mailSTRUDELrotemlissDOTcom
#define Site www.rotemliss.com
More information about the MediaWiki-l
mailing list