[prev in list] [next in list] [prev in thread] [next in thread] 

List:       axis-cvs
Subject:    svn commit: r543089 - in
From:       amilas () apache ! org
Date:       2007-05-31 9:04:54
Message-ID: 20070531090455.122691A981A () eris ! apache ! org
[Download RAW message or body]

Author: amilas
Date: Thu May 31 02:04:54 2007
New Revision: 543089

URL: http://svn.apache.org/viewvc?view=rev&rev=543089
Log:
Fixed the issue Axis2-2717

Modified:
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/Time.java
  webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java


Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/Time.java
                
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/Time.java?view=diff&rev=543089&r1=543088&r2=543089
 ==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/Time.java \
                (original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/Time.java \
Thu May 31 02:04:54 2007 @@ -36,7 +36,7 @@
      * timestamp
      */
     private static SimpleDateFormat zulu =
-            new SimpleDateFormat("HH:mm:ss.SSS'Z'");
+            new SimpleDateFormat("HH:mm:ss.SSSSSSSSS'Z'");
 
     static {
         zulu.setTimeZone(TimeZone.getTimeZone("GMT"));
@@ -103,12 +103,12 @@
                     // i.e this have the ('.'s+) part
                     if (rest.endsWith("Z")) {
                         // this is in gmt time zone
-                        simpleDateFormat = new SimpleDateFormat("HH:mm:ss.SSS'Z'");
+                        simpleDateFormat = new \
                SimpleDateFormat("HH:mm:ss.SSSSSSSSS'Z'");
                         simpleDateFormat.setTimeZone(TimeZone.getTimeZone("GMT"));
 
                     } else if ((rest.indexOf("+") > 0) || (rest.indexOf("-") > 0)) {
                         // this is given in a general time zione
-                        simpleDateFormat = new SimpleDateFormat("HH:mm:ss.SSSz");
+                        simpleDateFormat = new \
SimpleDateFormat("HH:mm:ss.SSSSSSSSSz");  if (rest.lastIndexOf("+") > 0) {
                             source = source.substring(0, source.lastIndexOf("+")) + \
                "GMT" +
                                     rest.substring(rest.lastIndexOf("+"));
@@ -118,7 +118,7 @@
                         }
                     } else {
                         // i.e it does not have time zone
-                        simpleDateFormat = new SimpleDateFormat("HH:mm:ss.SSS");
+                        simpleDateFormat = new \
SimpleDateFormat("HH:mm:ss.SSSSSSSSS");  }
 
                 } else {

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java
                
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apa \
che/axis2/databinding/utils/ConverterUtil.java?view=diff&rev=543089&r1=543088&r2=543089
 ==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java \
                (original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java \
Thu May 31 02:04:54 2007 @@ -569,12 +569,12 @@
                         // i.e this have the ('.'s+) part
                         if (rest.endsWith("Z")) {
                             // this is in gmt time zone
-                            simpleDateFormat = new \
SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); +                            \
                simpleDateFormat = new \
                SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSSSSSSS'Z'");
                             \
simpleDateFormat.setTimeZone(TimeZone.getTimeZone("GMT"));  
                         } else if ((rest.lastIndexOf("+") > 0) || \
(rest.lastIndexOf("-") > 0)) {  // this is given in a general time zione
-                            simpleDateFormat = new \
SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSz"); +                            \
simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSSSSSSSz");  if \
                (rest.lastIndexOf("+") > 0) {
                                 source = source.substring(0, \
                source.lastIndexOf("+")) + "GMT" +
                                         rest.substring(rest.lastIndexOf("+"));
@@ -585,7 +585,7 @@
 
                         } else {
                             // i.e it does not have time zone
-                            simpleDateFormat = new \
SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS"); +                            \
simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSSSSSSS");  }
 
                     } else {



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic