myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bara...@apache.org
Subject svn commit: r278703 - /myfaces/api/trunk/src/java/javax/faces/convert/DateTimeConverter.java
Date Mon, 05 Sep 2005 09:32:13 GMT
Author: baranda
Date: Mon Sep  5 02:32:09 2005
New Revision: 278703

URL: http://svn.apache.org/viewcvs?rev=278703&view=rev
Log:
Fixes MYFACES-506. Now the default time for the GMT zone is returned in DateTimeConverter.getTimeZone
if none is set.

Modified:
    myfaces/api/trunk/src/java/javax/faces/convert/DateTimeConverter.java

Modified: myfaces/api/trunk/src/java/javax/faces/convert/DateTimeConverter.java
URL: http://svn.apache.org/viewcvs/myfaces/api/trunk/src/java/javax/faces/convert/DateTimeConverter.java?rev=278703&r1=278702&r2=278703&view=diff
==============================================================================
--- myfaces/api/trunk/src/java/javax/faces/convert/DateTimeConverter.java (original)
+++ myfaces/api/trunk/src/java/javax/faces/convert/DateTimeConverter.java Mon Sep  5 02:32:09
2005
@@ -45,6 +45,7 @@
     private static final String STYLE_SHORT = "short";
     private static final String STYLE_LONG = "long";
     private static final String STYLE_FULL = "full";
+    private static final TimeZone TIMEZONE_DEFAULT = TimeZone.getTimeZone("GMT");
 
     private String _dateStyle;
     private Locale _locale;
@@ -254,7 +255,7 @@
 
     public TimeZone getTimeZone()
     {
-        return _timeZone;
+        return _timeZone != null ? _timeZone : TIMEZONE_DEFAULT;
     }
 
     public void setTimeZone(TimeZone timeZone)



Mime
View raw message