more importantly, can we get TimeZone support then?? It's just as
important for date parsing/formatting. :)
[email protected] wrote:
Author: hlship
Date: Tue Apr 21 21:25:16 2009
New Revision: 767301
URL: http://svn.apache.org/viewvc?rev=767301&view=rev
Log:
TAP5-660: Type coercion from String to DateFormat will always coerce using the
server's default locale, rather than the current per-thread locale
Modified:
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/TapestryModule.java
Modified:
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/TapestryModule.java
URL:
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/TapestryModule.java?rev=767301&r1=767300&r2=767301&view=diff
==============================================================================
---
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/TapestryModule.java
(original)
+++
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/TapestryModule.java
Tue Apr 21 21:25:16 2009
@@ -861,6 +861,9 @@
@Builtin
TypeCoercer coercer,
+ @Builtin
+ final ThreadLocale threadLocale,
+
@Core
final AssetSource assetSource)
{
@@ -964,7 +967,7 @@
{
public DateFormat coerce(String input)
{
- return new SimpleDateFormat(input);
+ return new SimpleDateFormat(input, threadLocale.getLocale());
}
});
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]