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/13 23:00:33 UTC
svn commit: r320916 - in /webservices/axis/trunk/c/src/soap/xsd: Date.cpp
GDay.cpp GMonth.cpp GMonthDay.cpp GYear.cpp GYearMonth.cpp Time.cpp
Author: nadiramra
Date: Thu Oct 13 14:00:29 2005
New Revision: 320916
URL: http://svn.apache.org/viewcvs?rev=320916&view=rev
Log:
Fix AXISCPP-852.
Modified:
webservices/axis/trunk/c/src/soap/xsd/Date.cpp
webservices/axis/trunk/c/src/soap/xsd/GDay.cpp
webservices/axis/trunk/c/src/soap/xsd/GMonth.cpp
webservices/axis/trunk/c/src/soap/xsd/GMonthDay.cpp
webservices/axis/trunk/c/src/soap/xsd/GYear.cpp
webservices/axis/trunk/c/src/soap/xsd/GYearMonth.cpp
webservices/axis/trunk/c/src/soap/xsd/Time.cpp
Modified: webservices/axis/trunk/c/src/soap/xsd/Date.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/soap/xsd/Date.cpp?rev=320916&r1=320915&r2=320916&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/soap/xsd/Date.cpp (original)
+++ webservices/axis/trunk/c/src/soap/xsd/Date.cpp Thu Oct 13 14:00:29 2005
@@ -137,7 +137,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));
@@ -202,7 +202,7 @@
AxisChar *cTemp2;
// 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));
@@ -292,11 +292,11 @@
int secs = hours * 60 * 60 + mins * 60;
if ((cTemp = strpbrk ((cUtc), "+")) != NULL)
{
- timeInSecs += secs;
+ timeInSecs -= secs;
}
else
{
- timeInSecs -= secs;
+ timeInSecs += secs;
}
pTm = localtime (&timeInSecs);
Modified: webservices/axis/trunk/c/src/soap/xsd/GDay.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/soap/xsd/GDay.cpp?rev=320916&r1=320915&r2=320916&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/soap/xsd/GDay.cpp (original)
+++ webservices/axis/trunk/c/src/soap/xsd/GDay.cpp Thu Oct 13 14:00:29 2005
@@ -137,7 +137,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));
@@ -201,7 +201,7 @@
AxisChar *cTemp2;
// 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));
@@ -284,11 +284,11 @@
int secs = hours * 60 * 60 + mins * 60;
if ((cTemp = strpbrk ((cUtc), "+")) != NULL)
{
- timeInSecs += secs;
+ timeInSecs -= secs;
}
else
{
- timeInSecs -= secs;
+ timeInSecs += secs;
}
pTm = localtime (&timeInSecs);
Modified: webservices/axis/trunk/c/src/soap/xsd/GMonth.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/soap/xsd/GMonth.cpp?rev=320916&r1=320915&r2=320916&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/soap/xsd/GMonth.cpp (original)
+++ webservices/axis/trunk/c/src/soap/xsd/GMonth.cpp Thu Oct 13 14:00:29 2005
@@ -137,7 +137,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));
@@ -203,7 +203,7 @@
AxisChar *cTemp2;
// 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));
@@ -288,11 +288,11 @@
int secs = hours * 60 * 60 + mins * 60;
if ((cTemp = strpbrk ((cUtc), "+")) != NULL)
{
- timeInSecs += secs;
+ timeInSecs -= secs;
}
else
{
- timeInSecs -= secs;
+ timeInSecs += secs;
}
pTm = localtime (&timeInSecs);
Modified: webservices/axis/trunk/c/src/soap/xsd/GMonthDay.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/soap/xsd/GMonthDay.cpp?rev=320916&r1=320915&r2=320916&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/soap/xsd/GMonthDay.cpp (original)
+++ webservices/axis/trunk/c/src/soap/xsd/GMonthDay.cpp Thu Oct 13 14:00:29 2005
@@ -137,7 +137,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));
@@ -202,7 +202,7 @@
AxisChar *cTemp2;
// 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));
@@ -286,11 +286,11 @@
int secs = hours * 60 * 60 + mins * 60;
if ((cTemp = strpbrk ((cUtc), "+")) != NULL)
{
- timeInSecs += secs;
+ timeInSecs -= secs;
}
else
{
- timeInSecs -= secs;
+ timeInSecs += secs;
}
pTm = localtime (&timeInSecs);
Modified: webservices/axis/trunk/c/src/soap/xsd/GYear.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/soap/xsd/GYear.cpp?rev=320916&r1=320915&r2=320916&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/soap/xsd/GYear.cpp (original)
+++ webservices/axis/trunk/c/src/soap/xsd/GYear.cpp Thu Oct 13 14:00:29 2005
@@ -137,7 +137,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));
@@ -202,7 +202,7 @@
AxisChar *cTemp2;
// 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));
@@ -286,11 +286,11 @@
int secs = hours * 60 * 60 + mins * 60;
if ((cTemp = strpbrk ((cUtc), "+")) != NULL)
{
- timeInSecs += secs;
+ timeInSecs -= secs;
}
else
{
- timeInSecs -= secs;
+ timeInSecs += secs;
}
pTm = localtime (&timeInSecs);
Modified: webservices/axis/trunk/c/src/soap/xsd/GYearMonth.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/soap/xsd/GYearMonth.cpp?rev=320916&r1=320915&r2=320916&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/soap/xsd/GYearMonth.cpp (original)
+++ webservices/axis/trunk/c/src/soap/xsd/GYearMonth.cpp Thu Oct 13 14:00:29 2005
@@ -137,7 +137,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));
@@ -202,7 +202,7 @@
AxisChar *cTemp2;
// 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));
@@ -287,11 +287,11 @@
int secs = hours * 60 * 60 + mins * 60;
if ((cTemp = strpbrk ((cUtc), "+")) != NULL)
{
- timeInSecs += secs;
+ timeInSecs -= secs;
}
else
{
- timeInSecs -= secs;
+ timeInSecs += secs;
}
pTm = localtime (&timeInSecs);
@@ -347,3 +347,4 @@
}
AXIS_CPP_NAMESPACE_END
+
Modified: webservices/axis/trunk/c/src/soap/xsd/Time.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/soap/xsd/Time.cpp?rev=320916&r1=320915&r2=320916&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/soap/xsd/Time.cpp (original)
+++ webservices/axis/trunk/c/src/soap/xsd/Time.cpp Thu Oct 13 14:00:29 2005
@@ -137,7 +137,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));
@@ -203,7 +203,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));
@@ -296,11 +296,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);
memcpy (&value, pTm, sizeof (tm));