axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samisa Abeysinghe <samisa.abeysin...@gmail.com>
Subject Re: Axis-C 1.5.0: Bug in DateTime.cpp?
Date Mon, 10 Oct 2005 05:50:14 GMT
Hanno Fietz wrote:

> Hello,
>
> we are migrating from Axis-Java to Axis-C and are currently running a
> test installation. We had difficulties with date de-/serialization and
> after some research found that dateTime strings from our SOAP-Messages
> were not processed as we expected. It seemed that for example
> 2005-10-09T13:00:00+02:00 was converted to 9th of October, 2005,
> 15:00:00 UTC, which is not the way it should be, as far as I got ISO
> 9801. Here is what we changed in the Axis sources
> (src/soap/xsd/DateTime.cpp) to make it work for us:
>
> 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; ***/
>
>
> Comments would be appreciated. If this was a bug, is there anything, I
> can do to contribute our fix to the official sources?

This looks a bug to me. (We have been having several issues with Date)
Please create a Jira issue, and attach the diff with respect to the svn 
head to the issue created.

Thanks,
Samisa...

>
> Regards,
>
> Hanno Fietz
>
>


Mime
View raw message