Senaka,
Though this is a trivial bug, it might be caused to break all the
modules that dependent on this convention. At the door step of the Axis2/C
1.3.0 we could not accept such an unstableness in the svn head. I would like
to get revert this change. Lets fix this after Axis2/C 1.3.0 release.
thanks,
Dinesh
---------- Forwarded message ----------
From: <[EMAIL PROTECTED]>
Date: Tue, Feb 26, 2008 at 7:48 PM
Subject: svn commit: r631222 -
/webservices/axis2/trunk/c/util/src/date_time.c
To: [EMAIL PROTECTED]
Author: senaka
Date: Tue Feb 26 06:18:10 2008
New Revision: 631222
URL: http://svn.apache.org/viewvc?rev=631222&view=rev
Log:
Fixing Errors in datetime
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=631222&r1=631221&r2=631222&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/src/date_time.c (original)
+++ webservices/axis2/trunk/c/util/src/date_time.c Tue Feb 26 06:18:10 2008
@@ -225,9 +225,9 @@
if (year > -1)
date_time->year = year - 1900;
- if (month > -1)
+ if (month > 0)
date_time->mon = month;
- if (day > -1)
+ if (day > 0)
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 + 1, date_time->day,
+ date_time->year + 1900, date_time->mon, date_time->day,
date_time->hour, date_time->min, date_time->sec,
date_time->msec);
return date_time_str;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
http://nethu.org/