axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/encoding DateSerializer.java
Date Wed, 09 May 2001 21:29:41 GMT
rubys       01/05/09 14:29:41

  Modified:    java/src/org/apache/axis/encoding DateSerializer.java
  Log:
  Parse dates correctly
  
  Revision  Changes    Path
  1.2       +3 -2      xml-axis/java/src/org/apache/axis/encoding/DateSerializer.java
  
  Index: DateSerializer.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/encoding/DateSerializer.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DateSerializer.java	2001/05/08 15:35:07	1.1
  +++ DateSerializer.java	2001/05/09 21:29:40	1.2
  @@ -73,7 +73,8 @@
    */
   public class DateSerializer implements Serializer {
   
  -    static SimpleDateFormat zulu = new SimpleDateFormat("yyyy-MM-dd'T'hh:mm:ss.SSS'Z'");
  +    private static SimpleDateFormat zulu = 
  +      new SimpleDateFormat("yyyy-MM-dd'T'hh:mm:ss.SSS'Z'");
   
       static {
         zulu.setTimeZone(TimeZone.getTimeZone("GMT"));
  @@ -82,7 +83,7 @@
       static class DateDeser extends SOAPTypeMappingRegistry.BasicDeser {
           Object makeValue(String source) { 
             try {
  -            return DateFormat.getDateInstance().parse(source); 
  +            return zulu.parse(source); 
             } catch (Exception e) {
               throw new NumberFormatException(e.toString());
             }
  
  
  

Mime
View raw message