You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by pe...@apache.org on 2003/03/23 23:54:49 UTC

cvs commit: xml-xerces/c/src/xercesc/util XMLDateTime.cpp

peiyongz    2003/03/23 14:54:49

  Modified:    c/src/xercesc/util XMLDateTime.cpp
  Log:
  invalid second values
  
  Revision  Changes    Path
  1.8       +11 -1     xml-xerces/c/src/xercesc/util/XMLDateTime.cpp
  
  Index: XMLDateTime.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/XMLDateTime.cpp,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- XMLDateTime.cpp	22 Feb 2003 22:49:09 -0000	1.7
  +++ XMLDateTime.cpp	23 Mar 2003 22:54:49 -0000	1.8
  @@ -57,6 +57,9 @@
   /*
    * $Id$
    * $Log$
  + * Revision 1.8  2003/03/23 22:54:49  peiyongz
  + * invalid second values
  + *
    * Revision 1.7  2003/02/22 22:49:09  peiyongz
    * Schema Errata E2-45 24:00:00 allowed
    *
  @@ -1044,6 +1047,13 @@
               fValue[MiliSecond] = parseInt(fStart, sign);  //get ms between UTC sign and fEnd
           }
   	}
  +    else
  +    {
  +        // seconds has more than 2 digits
  +        ThrowXML1(SchemaDateTimeException
  +                , XMLExcepts::DateTime_min_invalid
  +                , fBuffer);
  +    }
   
       //parse UTC time zone (hh:mm)
       if ( sign > 0 ) {
  
  
  

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