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 < [email protected]> 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 > [email protected] > https://lists.wikimedia.org/mailman/listinfo/wikitech-l > -- Andrew Garrett Wikimedia Foundation [email protected] _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
