axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hanno Fietz (JIRA)" <axis-c-...@ws.apache.org>
Subject [jira] Created: (AXISCPP-852) DateTime is de- / serialized incorrectly
Date Tue, 11 Oct 2005 10:25:30 GMT
DateTime is de- / serialized incorrectly
----------------------------------------

         Key: AXISCPP-852
         URL: http://issues.apache.org/jira/browse/AXISCPP-852
     Project: Axis-C++
        Type: Bug
    Versions: 1.5 Final    
 Environment: Suse Linux 9.0
    Reporter: Hanno Fietz


DateTime items in SOAP-Messages get deserialized incorrectly: It seems that the GMT offset
is treated wrongly when normalizing to GMT. Also, there's an error in serialization during
daylight saving time. This is the phenotype:
2005-10-09T13:00:00+0200
becomes
2005-10-09T15:00:00Z
in our application, where it should be
2005-10-09T11:00:00Z

We patched the file src/soap/xsd/DateTime.cpp from the official Axis-1.5 sources to make it
work for us. Here's the diff:

123c123
<         time_t now = 0;
---
>         time_t now = time(0); /***time_t now = 0; ***/
189c189
<         time_t now = 0;
---
>         time_t now = time(0);  /*** time_t now = 0; ***/
287c287
<                 timeInSecs += secs;
---
>                 timeInSecs -= secs;  /*** timeInSecs += secs; ***/
291c291
<                 timeInSecs -= secs;
---
>                 timeInSecs += secs;  /*** timeInSecs -= secs; ***/

(we had the original lines commented out rather than deleted just in case we needed to roll
back)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message