how to set time zone?

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

how to set time zone?

Gart, Mitchell
Sorry for the newbie question but I did search the doc and archives
first.

I'd like to set the time zone.  I have done this

$wgLocaltimezone    = 'EST5EDT';

in LocalSettings.php and it didn't do anything.  I'm running
MediaWiki 1.6.5 on Windows.  Can somebody tell me how to set it
correctly?  Thanks.
_______________________________________________
MediaWiki-l mailing list
[hidden email]
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Reply | Threaded
Open this post in threaded view
|

Re: how to set time zone?

Todd Pederzani
On 5/9/06, Gart, Mitchell <[hidden email]> 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
[hidden email]
_______________________________________________
MediaWiki-l mailing list
[hidden email]
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Reply | Threaded
Open this post in threaded view
|

Re: how to set time zone?

Gart, Mitchell
In reply to this post by Gart, Mitchell
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" <[hidden email]>
> Subject: Re: [Mediawiki-l] how to set time zone?
> To: "MediaWiki announcements and site admin list"
> <[hidden email]>
> Message-ID:
> <[hidden email]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> On 5/9/06, Gart, Mitchell <[hidden email]> 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
> [hidden email]
_______________________________________________
MediaWiki-l mailing list
[hidden email]
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Reply | Threaded
Open this post in threaded view
|

Re: how to set time zone?

Robert Pfau
Are you logged in ?
Had a similar problems with summertime

look in your personal preferences if there is a custom setting like
GMT+X or something

.robert

>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" <[hidden email]>
>>Subject: Re: [Mediawiki-l] how to set time zone?
>>To: "MediaWiki announcements and site admin list"
>> <[hidden email]>
>>Message-ID:
>> <[hidden email]>
>>Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>>
>>On 5/9/06, Gart, Mitchell <[hidden email]> 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
>>[hidden email]
>>    
>>
>_______________________________________________
>MediaWiki-l mailing list
>[hidden email]
>http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>
>  
>

_______________________________________________
MediaWiki-l mailing list
[hidden email]
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Reply | Threaded
Open this post in threaded view
|

Re: how to set time zone?

Rotem Liss
In reply to this post by Gart, Mitchell
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" <[hidden email]>
>>Subject: Re: [Mediawiki-l] how to set time zone?
>>To: "MediaWiki announcements and site admin list"
>> <[hidden email]>
>>Message-ID:
>> <[hidden email]>
>>Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>>
>>On 5/9/06, Gart, Mitchell <[hidden email]> 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
>>[hidden email]
>>    
>>
>_______________________________________________
>MediaWiki-l mailing list
>[hidden email]
>http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>
>  
>
--
#define Name RotemLiss
#define Mail mailSTRUDELrotemlissDOTcom
#define Site www.rotemliss.com


_______________________________________________
MediaWiki-l mailing list
[hidden email]
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Reply | Threaded
Open this post in threaded view
|

Re: how to set time zone?

Rotem Liss
In reply to this post by Gart, Mitchell
By the way, setting the timezone in your user preferences will cause the
same result like setting $wgLocalTZoffset; actually, setting it won't
affect you, as a registered user, and you should log out to check if it
works.


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" <[hidden email]>
>>Subject: Re: [Mediawiki-l] how to set time zone?
>>To: "MediaWiki announcements and site admin list"
>> <[hidden email]>
>>Message-ID:
>> <[hidden email]>
>>Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>>
>>On 5/9/06, Gart, Mitchell <[hidden email]> 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
>>[hidden email]
>>    
>>
>_______________________________________________
>MediaWiki-l mailing list
>[hidden email]
>http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>
>  
>
--
#define Name RotemLiss
#define Mail mailSTRUDELrotemlissDOTcom
#define Site www.rotemliss.com


_______________________________________________
MediaWiki-l mailing list
[hidden email]
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l