[jboss-cvs] jboss-seam/src/ui/org/jboss/seam/ui ...
Gavin King
gavin.king at jboss.com
Thu Nov 23 16:26:44 EST 2006
User: gavin
Date: 06/11/23 16:26:44
Modified: src/ui/org/jboss/seam/ui ConvertDateTime.java
Log:
workaround for RI's verifyObjects stuff
Revision Changes Path
1.3 +11 -2 jboss-seam/src/ui/org/jboss/seam/ui/ConvertDateTime.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ConvertDateTime.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/ui/org/jboss/seam/ui/ConvertDateTime.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- ConvertDateTime.java 12 Oct 2006 01:37:28 -0000 1.2
+++ ConvertDateTime.java 23 Nov 2006 21:26:44 -0000 1.3
@@ -4,18 +4,27 @@
import javax.faces.convert.DateTimeConverter;
+import org.jboss.seam.contexts.Contexts;
+
public class ConvertDateTime extends DateTimeConverter
{
public ConvertDateTime()
{
- setTimeZone( org.jboss.seam.core.TimeZone.instance() );
+ setTimeZone( getTimeZone() );
}
@Override
public TimeZone getTimeZone()
{
+ if ( Contexts.isApplicationContextActive() )
+ {
return org.jboss.seam.core.TimeZone.instance();
}
+ else
+ {
+ return TimeZone.getDefault();
+ }
+ }
}
More information about the jboss-cvs-commits
mailing list