axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ami...@apache.org
Subject svn commit: r783787 - /webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/typemapping/SimpleTypeMapper.java
Date Thu, 11 Jun 2009 14:23:09 GMT
Author: amilas
Date: Thu Jun 11 14:23:09 2009
New Revision: 783787

URL: http://svn.apache.org/viewvc?rev=783787&view=rev
Log:
use efficient ConverterUtil method instead of simpledate formatter

Modified:
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/typemapping/SimpleTypeMapper.java

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/typemapping/SimpleTypeMapper.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/typemapping/SimpleTypeMapper.java?rev=783787&r1=783786&r2=783787&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/typemapping/SimpleTypeMapper.java
(original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/typemapping/SimpleTypeMapper.java
Thu Jun 11 14:23:09 2009
@@ -287,9 +287,8 @@
                 return obj.toString();
             }
         } else if (obj instanceof Calendar) {
-            SimpleDateFormat zulu = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
-            zulu.setTimeZone(TimeZone.getTimeZone("GMT"));
-            return zulu.format(((Calendar)obj).getTime());
+            Calendar calendar = (Calendar) obj;
+            return ConverterUtil.convertToString(calendar);
         } else if (obj instanceof Date) {
             SimpleDateFormat zulu = new SimpleDateFormat("yyyy-MM-dd");
 



Mime
View raw message