axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sen...@apache.org
Subject svn commit: r631586 - /webservices/axis2/trunk/c/util/src/date_time.c
Date Wed, 27 Feb 2008 13:36:36 GMT
Author: senaka
Date: Wed Feb 27 05:36:34 2008
New Revision: 631586

URL: http://svn.apache.org/viewvc?rev=631586&view=rev
Log:
Reverting fix to date_time that caused an interop failure

Modified:
    webservices/axis2/trunk/c/util/src/date_time.c

Modified: webservices/axis2/trunk/c/util/src/date_time.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/src/date_time.c?rev=631586&r1=631585&r2=631586&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/src/date_time.c (original)
+++ webservices/axis2/trunk/c/util/src/date_time.c Wed Feb 27 05:36:34 2008
@@ -225,9 +225,9 @@
 
     if (year > -1)
         date_time->year = year - 1900;
-    if (month > 0)
+    if (month > -1)
         date_time->mon = month;
-    if (day > 0)
+    if (day > -1)
         date_time->day = day;
     if (hour > -1)
         date_time->hour = hour;
@@ -288,7 +288,7 @@
 
     date_time_str = AXIS2_MALLOC(env->allocator, sizeof(char) * 32);
     sprintf(date_time_str, "%d-%02d-%02dT%02d:%02d:%02d.%03dZ",
-            date_time->year + 1900, date_time->mon, date_time->day,
+            date_time->year + 1900, date_time->mon + 1, date_time->day,
             date_time->hour, date_time->min, date_time->sec, date_time->msec);
     return date_time_str;
 }



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


Mime
View raw message