You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "nadir amra (JIRA)" <ax...@ws.apache.org> on 2005/10/13 07:38:06 UTC

[jira] Reopened: (AXISCPP-852) DateTime is de- / serialized incorrectly

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


I am re-opening this issue because I think we there are similar problems in the other date/time xsd types....I am investigating.

> 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