axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shan...@apache.org
Subject svn commit: r641140 - /webservices/axis2/trunk/c/util/src/date_time.c
Date Wed, 26 Mar 2008 04:18:09 GMT
Author: shankar
Date: Tue Mar 25 21:18:04 2008
New Revision: 641140

URL: http://svn.apache.org/viewvc?rev=641140&view=rev
Log:
bug fixes in serialize method.

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=641140&r1=641139&r2=641140&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/src/date_time.c (original)
+++ webservices/axis2/trunk/c/util/src/date_time.c Tue Mar 25 21:18:04 2008
@@ -631,7 +631,7 @@
 
     time_str = (axis2_char_t *) AXIS2_MALLOC(env->allocator,
                    sizeof(axis2_char_t) * 32);
-    sprintf(time_str, "%02d:%02d:%02.3fZ", date_time->hour, date_time->min,
+    sprintf(time_str, "%02d:%02d:%06.3fZ", date_time->hour, date_time->min,
         date_time->sec);
     return time_str;
 }
@@ -652,7 +652,7 @@
 
     time_str =
         (axis2_char_t *) AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * 37);
-    sprintf(time_str, "%02d:%02d:%02.3f%c%02d:%02d", date_time->hour, date_time->min,
+    sprintf(time_str, "%02d:%02d:%06.3f%c%02d:%02d", date_time->hour, date_time->min,
         date_time->sec, date_time->tz_pos ? '+': '-',
         date_time->tz_hour, date_time->tz_min);
     return time_str;
@@ -685,7 +685,7 @@
     AXIS2_ENV_CHECK(env, NULL);
 
     date_time_str = AXIS2_MALLOC(env->allocator, sizeof(char) * 32);
-    sprintf(date_time_str, "%d-%02d-%02dT%02d:%02d:%02.3fZ",
+    sprintf(date_time_str, "%d-%02d-%02dT%02d:%02d:%06.3fZ",
         date_time->year + 1900, date_time->mon + 1, date_time->day,
         date_time->hour, date_time->min, date_time->sec);
     return date_time_str;
@@ -706,7 +706,7 @@
     }
 
     date_time_str = AXIS2_MALLOC(env->allocator, sizeof(char) * 37);
-    sprintf(date_time_str, "%d-%02d-%02dT%02d:%02d:%02.3f%c%02d:%02d",
+    sprintf(date_time_str, "%d-%02d-%02dT%02d:%02d:%06.3f%c%02d:%02d",
         date_time->year + 1900, date_time->mon + 1, date_time->day,
         date_time->hour, date_time->min, date_time->sec, 
         date_time->tz_pos ? '+': '-', date_time->tz_hour, date_time->tz_min);
@@ -768,7 +768,7 @@
     const axutil_env_t *env)
 {
     /* Precision is 1/100 of a millisecond */
-    float ret = (date_time->sec - (float)((int)date_time->sec)) * 1000.0;
+    float ret = (float)((date_time->sec - (float)((int)date_time->sec)) * 1000.0);
     return (int)((ret * 100.0 + 0.5) / 100.0);
 }
 



---------------------------------------------------------------------
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