I think I once added a parser function that formats dates according to a user's preferences. It might be called "{{#dateformat}}". You could possibly steal the code that it uses.
On Tue, Jun 26, 2012 at 2:45 AM, Derric Atzrott < datzr...@alizeepathology.com> wrote: > How do you format dates according to user preference in Mediawiki? I > presume it has something to do with DateFormatter > (http://svn.wikimedia.org/doc/classDateFormatter.html), but I'm not 100% > sure how to make use of this class. > > > > The extension I am working on displays, among other things, a last update > time for its data. I want this time to display consistent with user > preferences. Right now I am running (time() - (60*60*4)) through date(), > but I feel this is a very inelegant solution. > > > > Thank you, > > Derric Atzrott > > Computer Specialist > > Alizee Pathology > > > > _______________________________________________ > Wikitech-l mailing list > Wikitech-l@lists.wikimedia.org > https://lists.wikimedia.org/mailman/listinfo/wikitech-l > -- Andrew Garrett Wikimedia Foundation agarr...@wikimedia.org _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l