[ 
http://issues.apache.org/jira/browse/AXISCPP-852?page=comments#action_12331965 
] 

Adrian Dick commented on AXISCPP-852:
-------------------------------------

I would expect this to also be a problem for the other date/time xsd types, as 
they use essentially the same logic.   That said, it should only really be a 
problem to those types handling time (ie hour and minutes - not days, months, 
etc.).

> 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