Tim Starling wrote:
I've written some PHP code to convert date
formats from those typed to a
user preference. A demonstration is now available at:
http://www.piclab.com/wiki/wiki.phtml?title=Date_demonstration
There's also some information at:
http://meta.wikipedia.org/wiki/Dynamic_dates
Any comments would be appreciated. There's just a few minor things
left to
do: for example I want to have an option in LocalSettings.php to
disable it.
I haven't seen your code, but if you haven't already done so I highly
recommend putting the guts of this into Language.php, so it doesn't
clutter up the common code, and so other languages that want such an
option can adapt it cleanly.
The user option should also override the sitewide setting in
Language::date() ($wgAmericanDates true or false -- incidentally,
although there were terrible flame wars a few months ago when it was
suggested to change the date format used to display timestamps from
American to British order, I've not heard a peep since the default got
flipped during the server upgrade over a month ago.)
Can I please have whatever access is necessary to
enable me to
install this
on
test.wikipedia.org, and ultimately on the live server?
I'll see about setting up a login for you. (Erik probably should get
one, too.)
The ISO format is based on numerical dates. Thus for the example it
would be 2003-06-24. It includes hyphens and has leading zeros for days
and months. To the extent that I have been applying them I would enter
such a date as [[2003]]-[[06-24]]. The first hyphen is outside of the
link, and I have written redirects for the numerical dates on an as
required basis.
Eclecticology