You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2005/07/15 16:40:55 UTC

cvs commit: ws-axis/c/src/soap/xsd Time.cpp

dicka       2005/07/15 07:40:55

  Modified:    c/src/soap/xsd Time.cpp
  Log:
  Resolve problem with deserialize values, whlie in a timezone ahead of GMT.
  
  PR: AXISCPP-746
  Submitted by: Adrian Dick
  
  Revision  Changes    Path
  1.16      +3 -1      ws-axis/c/src/soap/xsd/Time.cpp
  
  Index: Time.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/soap/xsd/Time.cpp,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- Time.cpp	1 Jun 2005 14:22:56 -0000	1.15
  +++ Time.cpp	15 Jul 2005 14:40:55 -0000	1.16
  @@ -240,7 +240,7 @@
               const_cast<AxisChar*>(exceptionMessage.c_str()));
           }
   
  -        value.tm_year = 70;
  +        value.tm_year = 71;
           value.tm_mon = 0;
           value.tm_mday = 1;     /* Day of month (1 - 31) */
           value.tm_isdst = -1;
  @@ -324,6 +324,8 @@
               pTm = localtime (&timeInSecs);
           }
   
  +        pTm->tm_year = 70;
  +
       	xsd__time * returnValue = new xsd__time;
   		memcpy (returnValue, pTm, sizeof (tm));
       	return returnValue;