axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "McCullough, Ryan" <>
Subject RE: date & datetime elements
Date Thu, 25 Sep 2008 16:03:40 GMT

I made these changes to my source tree. If you are interested in seeing what I did, I can
send the changed files to you.

In the serializer of both Date.cpp and DateTime.cpp I added:
    // new code to create GMT times
    // basically it just appends a "Z" to the end of the date/datetime string
#else // AXIS_USE_GMT
    // Calculate local timezone offset
#endif // AXIS_USE_GMT

In the deserializer I added
#ifndef AXIS_USE_GMT
    // the t = labs (t - d) code inside the if statement where a Z is found on the end of
the date
#endif // AXIS_USE_GMT

I then also added the -DAXIS_USE_GMT compile symbol to my VS project files.

I needed to make a change to both the serializer and deserializer. The serializer will now
create date/datetimes in the format 'CCYY(-)MM(-)DDZ' and 'CCYY(-)MM(-)DDThh:mm:ssZ' respectively.

From: Nadir Amra []
Sent: Tuesday, September 23, 2008 2:37 PM
To: Apache AXIS C User List
Cc: Apache AXIS C User List
Subject: Re: date & datetime elements


I do not think so.  I think it would be easy to do by adding some sort of directive to the
configuration file.  When?  Not sure :-(, but will add to my todo list. Files in question
would be soap/xsd/DateTime.cpp and soap/xsd/Date.cpp

Nadir Amra

"McCullough, Ryan" <> wrote on 09/23/2008 02:46:10 PM:

> [image removed]
> date & datetime elements
> McCullough, Ryan
> to:
> Apache AXIS C User List
> 09/23/2008 02:55 PM
> Please respond to "Apache AXIS C User List"
> I am using Axis C (version 1), checked out from source control about
> 3 months ago.
> It looks like the xsd__date & xsd__datetime fields are using the
> 'tm' structure. Is there a way to configure this to use GMT rather
> than local time?
> Currently a date looks like '2007-01-01-06:00' and a datetime
> '2007-01-01T11:11:11-06:00'.
> What I would like is something that looks like '2007-01-01' and
> '2007-01-01T11:11:11Z'.
> -Ryan
> Ryan McCullough | RightNow Technologies | Integration Tools Engineer
> 406-556-3162 office | Bozeman, MT | |

View raw message