[Mediawiki-l] Problem with TZ settings

Simon Renshaw simon at benchmarkconsulting.com
Thu Feb 1 16:40:12 UTC 2007


I put the offset at -5.

I checked the preferences of the user and I see Server time	16:36 and Local time	16:31.

So I went on the server and it has the correct time (11:XX), as does my own station.

Could this be a DB problem?

-----Original Message-----
From: mediawiki-l-bounces at lists.wikimedia.org [mailto:mediawiki-l-bounces at lists.wikimedia.org] On Behalf Of Brion Vibber
Sent: 1 février, 2007 11:27
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Problem with TZ settings

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Simon Renshaw wrote:
> Hi,
> 
> Currently using version 1.9.1 and I'm having some problems getting the
> correct TZ, in my cast EST.
> 
> With 1.8, I put $wgLocalTZoffset in LocalSettings and that worked. 
> 
> I looked on Mediawiki's site in the config section and it look like I
> need to put $wgLocaltimezone = 'EST'; in LocalSettings.
> 
> But even after that, when I edit a page the time shown is not correct.
> For example, I edited a page at 10:50 this morning and it shows as 15:50
> in the history page.

/**
 * 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.
 */

> 
> What should I change to fix it?

1) set $wgLocalTZoffset
2) confirm that your account doesn't have a different preference set

- -- brion vibber (brion @ pobox.com / brion @ wikimedia.org)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFwhTGwRnhpk1wk44RAkYeAKCeS2n+cTz9boML8OZNdVEyMGJXCgCfQyLy
CpbeJhZC5N8f497fdX7teeU=
=AFzQ
-----END PGP SIGNATURE-----

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l at lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l



More information about the MediaWiki-l mailing list