[ http://issues.apache.org/jira/browse/AXISCPP-852?page=all ]
     
nadir amra closed AXISCPP-852:
------------------------------

    Resolution: Fixed

Actually, I had to change all the datatypes that had to do with date/time, this 
includes Date, Time, GYearMonth, GYear, GMonthDay, GMonth GDay.

Without this fix these testcase were failing on OS/400 - due to the fact that 
the UTC offset is -0500.  

> 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
>     Assignee: nadir amra
>      Fix For: 1.6 Alpha

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

Reply via email to