Okay I've got an answer. Yes, it is an O/S setting. If you change the
timezone using the Windows control panel it changes the timezone that is
displayed by the wiki. This makes sense.
The name that Windows uses for the timezone is a registry setting. I
can't tell you exactly which registry setting because I did a blanket
search-and-replace to try to get it working, but there were only about 3
or 4 matches.
The change to the registry setting doesn't take effect unless you change
the timezone in the control panel and change it back again. (It might
also take effect if you restart the computer, I didn't try that.)
So there're two steps: search and replace the offending time zone name
in the registry and cycle the time zone in the control panel. After
that, like magic, the name reported by the wiki changes.
I'm sure it's much easier on Unix!
Ben
-----Original Message-----
From: mediawiki-l-bounces(a)Wikimedia.org
[mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of Rob Church
Sent: Monday, 12 December 2005 1:25 p.m.
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Time zone name
If it isn't a system message, chances are the OS *does* supply it.
Check Special:Allmessages and see.
Rob Church
On 11/12/05, Ben Arnold (DSLWN) <BenA(a)datacom.co.nz> wrote:
On my installation the timezone in the ~~~~ signature
is displayed as
"(New Zealand Daylight Time)". This is pretty cumbersome. I'd prefer
it display "(NZDT)" or no timezone at all. I've tried Googling
mediawiki time zone but all the hits are around setting the offset,
not the name.
I've also tried searching the MediaWiki
installation for a
configuration file with timezone names in it, but no luck.
I'm using MediaWiki 1.5.1, PHP 4.3.8, MySQL 4.0.20a-debug on Windows
XP Professional.
In my LocalSettings.php, I have the following setting:
$wgLocalTZoffset = 13;
I guess there must be a mapping somewhere from 13 to "New Zealand
Daylight Time", although I don't know how it knows I'm not using Tonga
Standard Time. Maybe the O/S supplies the timezone
names. Any ideas?
Ben
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l