Revision: 903
http://stripes.svn.sourceforge.net/stripes/?rev=903&view=rev
Author: bengunter
Date: 2008-05-12 08:06:16 -0700 (Mon, 12 May 2008)
Log Message:
-----------
Fixed STS-512: DateFormatter ignores locale when formatting time.
Modified Paths:
--------------
trunk/stripes/src/net/sourceforge/stripes/format/DateFormatter.java
Modified: trunk/stripes/src/net/sourceforge/stripes/format/DateFormatter.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/format/DateFormatter.java
2008-05-10 05:21:20 UTC (rev 902)
+++ trunk/stripes/src/net/sourceforge/stripes/format/DateFormatter.java
2008-05-12 15:06:16 UTC (rev 903)
@@ -128,7 +128,7 @@
locale);
}
else if (lcFormatType.equals("time")) {
- format =
DateFormat.getTimeInstance(namedPatterns.get(lcFormatString));
+ format =
DateFormat.getTimeInstance(namedPatterns.get(lcFormatString), locale);
}
else {
throw new StripesRuntimeException("Invalid formatType for
Date: " + formatType +
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development