Also, if you call $xwiki.formatDate(date) without the format parameter, it will format the date according to a global xwiki preference called "dateformat". The parameter is not there by default, so you'll need to add it to the xwiki preferences class and set the value in the object. We've done that, and changed nearly every place the date is displayed to use it. -Tom -- Tom Kliethermes eSupport Initiatives IBM Information Management (913) 599-7240 Fax: (913) 599-8590 http://www.ibm.com/software/data Vincent Massol <[email protected]> 06/27/2007 08:07 AM Please respond to [email protected] To [email protected] cc Subject Re: [xwiki-users] Date format? Hi Brian, On Jun 27, 2007, at 2:02 PM, [email protected] wrote:
One of my users noticed that the date format being used by XWiki (at the bottom of a page, for example) is in Eurpoean format, e.g. 27/06/2007. Is there an easy way to change this to the U.S.-style, e.g. 06/27/2007?
Not really. I've checked and it's currently hardcoded in footer.vm. So your solutions right now are: 1) Use a custom skin that extends albatross and specify your footer in the footer field 2) Modify the footer.vm file. Solution 1 sounds the best to me as it allows easy upgrade to newer versions of XWiki more easily. -Vincent -- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws