Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 75861 invoked from network); 13 Oct 2005 21:00:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Oct 2005 21:00:57 -0000 Received: (qmail 72739 invoked by uid 500); 13 Oct 2005 21:00:56 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 72626 invoked by uid 500); 13 Oct 2005 21:00:55 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 72583 invoked by uid 99); 13 Oct 2005 21:00:55 -0000 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 13 Oct 2005 14:00:54 -0700 Received: (qmail 75617 invoked by uid 65534); 13 Oct 2005 21:00:34 -0000 Message-ID: <20051013210034.75616.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: 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 Date: Thu, 13 Oct 2005 21:00:33 -0000 To: axis-cvs@ws.apache.org From: nadiramra@apache.org X-Mailer: svnmailer-1.0.5 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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));