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 na...@apache.org on 2005/10/12 05:58:06 UTC
svn commit: r314771 - /webservices/axis/trunk/c/src/soap/xsd/DateTime.cpp
Author: nadiramra
Date: Tue Oct 11 20:58:02 2005
New Revision: 314771
URL: http://svn.apache.org/viewcvs?rev=314771&view=rev
Log:
Fix AXISCPP-852.
Modified:
webservices/axis/trunk/c/src/soap/xsd/DateTime.cpp
Modified: webservices/axis/trunk/c/src/soap/xsd/DateTime.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/soap/xsd/DateTime.cpp?rev=314771&r1=314770&r2=314771&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/soap/xsd/DateTime.cpp (original)
+++ webservices/axis/trunk/c/src/soap/xsd/DateTime.cpp Tue Oct 11 20:58:02 2005
@@ -141,7 +141,7 @@
delete [] valueAsString;
// Calculate local timezone offset
- time_t now = 0;
+ time_t now = time(NULL);
struct tm *temp = gmtime(&now);
struct tm utcTime;
memcpy(&utcTime, temp, sizeof(struct tm));
@@ -207,7 +207,7 @@
AxisChar *cTemp3;
// Calculate local timezone offset
- time_t now = 0;
+ time_t now = time(NULL);
struct tm *temp = gmtime(&now);
struct tm utcTime;
memcpy(&utcTime, temp, sizeof(struct tm));
@@ -305,11 +305,11 @@
int secs = hours * 60 * 60 + minutes * 60;
if ((cTemp = strpbrk ((cUtc), "+")) != NULL)
{
- timeInSecs += secs;
+ timeInSecs -= secs;
}
else
{
- timeInSecs -= secs;
+ timeInSecs += secs;
}
pTm = localtime (&timeInSecs);