You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ka...@apache.org on 2007/01/05 08:52:49 UTC
svn commit: r492929 - /webservices/axis2/trunk/c/util/src/date_time.c
Author: kaushalye
Date: Thu Jan 4 23:52:48 2007
New Revision: 492929
URL: http://svn.apache.org/viewvc?view=rev&rev=492929
Log:
Fixed a formatting error in axis2_date_time.
The format should be
YYYY-MM-DDThh:mm:ss.msecZ
e.g. 2007-01-05T07:46:34.685Z
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?view=diff&rev=492929&r1=492928&r2=492929
==============================================================================
--- webservices/axis2/trunk/c/util/src/date_time.c (original)
+++ webservices/axis2/trunk/c/util/src/date_time.c Thu Jan 4 23:52:48 2007
@@ -252,7 +252,7 @@
date_time_impl = AXIS2_INTF_TO_IMPL(date_time);
- sscanf(date_time_str, "%d-%d-%dT%d:%d:%d:%dZ", &date_time_impl-> year, &date_time_impl-> mon,
+ sscanf(date_time_str, "%d-%d-%dT%d:%d:%d.%dZ", &date_time_impl-> year, &date_time_impl-> mon,
&date_time_impl-> day, &date_time_impl-> hour, &date_time_impl-> min,
&date_time_impl-> sec, &date_time_impl-> msec);
date_time_impl-> year -= 1900;
@@ -295,7 +295,7 @@
time_str = (char*)AXIS2_MALLOC(env->allocator, sizeof(char) * 32);
- sprintf(time_str, "%d:%d:%d:%dZ" , date_time_impl-> hour, date_time_impl-> min, date_time_impl-> sec, date_time_impl-> msec);
+ sprintf(time_str, "%d:%d:%d.%dZ" , date_time_impl-> hour, date_time_impl-> min, date_time_impl-> sec,date_time_impl-> msec);
return time_str;
}
@@ -329,7 +329,7 @@
date_time_impl = AXIS2_INTF_TO_IMPL(date_time);
date_time_str = AXIS2_MALLOC(env-> allocator, sizeof(char) * 32);
- sprintf(date_time_str, "%d-%02d-%02dT%02d:%02d:%02d:%02dZ" , date_time_impl-> year + 1900,
+ sprintf(date_time_str, "%d-%02d-%02dT%02d:%02d:%02d.%03dZ" , date_time_impl-> year + 1900,
date_time_impl-> mon + 1, date_time_impl-> day, date_time_impl-> hour, date_time_impl-> min,
date_time_impl-> sec, date_time_impl-> 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