You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Andrew Sykes <an...@sykesdevelopment.com> on 2006/07/15 10:01:46 UTC

Re: svn commit: r422052 - /incubator/ofbiz/trunk/applications/order/webapp/ordermgr/order/orderlist.ftl

Si,

As an illustrative example, the following is a real pain...

06/07/06
On your side of the Atlantic that means 7th June 2006, but here in the
UK it is 6th July 2006.
-- 
Kind Regards
Andrew Sykes <an...@sykesdevelopment.com>
Sykes Development Ltd
http://www.sykesdevelopment.com


Re: svn commit: r422052 - /incubator/ofbiz/trunk/applications/order/webapp/ordermgr/order/orderlist.ftl

Posted by Leon Torres <le...@oss.minimetria.com>.
Andrew Sykes wrote:
 > Si,
 >
 > As an illustrative example, the following is a real pain...
 >
 > 06/07/06
 > On your side of the Atlantic that means 7th June 2006, but here in the
 > UK it is 6th July 2006.

In order to stave off future misunderstandings about this commit.  The 
freemarker timestamp?string.medium_short method and friends is *already 
localized*.  It will print the date format specific to your locale.

But even though it is localized, it is the wrong thing to do.  See David's 
comments about the established patterns, which point out a more subtle issue. 
And as I mentioned before, one potential solution is to overload 
timestamp.toString().

It's perplexing how this blew up into such a big issue.  People are making a 
mountain out of a molehill from this commit.

- Leon