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? Regards, Brian. ----------------------------------------- CONFIDENTIALITY STATEMENT: This e-mail transmission contains information that is intended to be confidential. It is intended only for the addressee named above. If you receive this e-mail in error, please do not read, copy, or disseminate it. If you are not the intended recipient, any disclosure, copying, distribution or use of the contents of this information is prohibited. Please reply to the message immediately by informing the sender that the message was misdirected. After replying, please erase it from your computer system. Your assistance in correcting this error is appreciated.
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
OK, thanks for the info. I've not found the docs on custom skin extensions yet, but I've read things suggesting its possible. So far, I've been modifying my local installation's "albatross" skin which I know is bad since upgrades will kill it. I think this would fall under i18n, but I absolutely hate developing stuff for i18n, so I'm not about to suggest anytyhing be serious done about this on my account (e.g. I'm not going to bother anyone with a JIRA issue). However, if there are any plans to look at more robust i18n for XWiki, this would be one for the list. Regards, Brian. Vincent Massol <[email protected] et> To [email protected] 06/27/2007 09:07 cc AM Subject Re: [xwiki-users] Date format? Please respond to xwiki-users@objec tweb.org 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 ----------------------------------------- CONFIDENTIALITY STATEMENT: This e-mail transmission contains information that is intended to be confidential. It is intended only for the addressee named above. If you receive this e-mail in error, please do not read, copy, or disseminate it. If you are not the intended recipient, any disclosure, copying, distribution or use of the contents of this information is prohibited. Please reply to the message immediately by informing the sender that the message was misdirected. After replying, please erase it from your computer system. Your assistance in correcting this error is appreciated.
This is now fixed in 1.1M3: http://jira.xwiki.org/jira/browse/XWIKI-1411 Thanks -Vincent On Jun 27, 2007, at 3:36 PM, [email protected] wrote:
OK, thanks for the info.
I've not found the docs on custom skin extensions yet, but I've read things suggesting its possible. So far, I've been modifying my local installation's "albatross" skin which I know is bad since upgrades will kill it.
I think this would fall under i18n, but I absolutely hate developing stuff for i18n, so I'm not about to suggest anytyhing be serious done about this on my account (e.g. I'm not going to bother anyone with a JIRA issue). However, if there are any plans to look at more robust i18n for XWiki, this would be one for the list.
Regards, Brian.
Vincent Massol <[email protected]
et> To [email protected] 06/27/2007 09:07 cc AM
Subject Re: [xwiki-users] Date format? Please respond to xwiki-users@objec tweb.org
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
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
Sounds like a much better solution than what I was implementing. I perused the help, but I can't see how one adds a "global xwiki preference". Is this done in the xwiki.cfg (e.g. xwiki.dateformat=yyyy-MM-dd), or is there a way to do it online? Regards, Brian. Thomas Kliethermes <[email protected]. To com> [email protected] cc 06/27/2007 10:03 AM Subject Re: [xwiki-users] Date format? Please respond to xwiki-users@objec tweb.org 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]> To 06/27/2007 08:07 AM xwiki-users@obje ctweb.org cc Please respond to [email protected] 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 -- 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 ----------------------------------------- CONFIDENTIALITY STATEMENT: This e-mail transmission contains information that is intended to be confidential. It is intended only for the addressee named above. If you receive this e-mail in error, please do not read, copy, or disseminate it. If you are not the intended recipient, any disclosure, copying, distribution or use of the contents of this information is prohibited. Please reply to the message immediately by informing the sender that the message was misdirected. After replying, please erase it from your computer system. Your assistance in correcting this error is appreciated.
participants (3)
-
BSayatovic@amig.com -
Thomas Kliethermes -
Vincent Massol