Does Axis have support for the standard xsd:date ?  It would be great if
we could use a data w/o time.  For instance, a holiday is a date...
Doesn't care about time.

Ben

On Thu, 2002-11-14 at 10:40, Tom Jordahl wrote:
> 
> Axis always normalizes date/time to GMT.
> You have to manage the time zone information.
> 
> --
> Tom Jordahl
> Macromedia Server Development
> 
> 
> 
> -----Original Message-----
> From: Ramaswamy, Muthu [mailto:mramaswamy@;gers.com]
> Sent: Wednesday, November 13, 2002 9:23 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Date Serialization by Apache Client.
> 
> 
> I am in PST Timezone. The ZONE_OFFSET: is -8:00 hours. 
> 
> So I would expect to see a Timestamp with Time Zone of "2002-11-11 00:00:00
> -8:00" for the Date "2002-11-11" with 00:00:00 time component.
> 
> Looks like it adds 8:00 hours to refer it to GMT time.
> 
> 
> -----Original Message-----
> From: Navneet Joneja [mailto:njoneja@;interwoven.com]
> Sent: Wednesday, November 13, 2002 6:05 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Date Serialization by Apache Client.
> 
> 
> Are you at Zulu - 8 hours in your system time zone?
> The format string that you specify indicates 8:00 Zulu time - so if you're 8
> hours behind Zulu (is that PST?) then your time is 8:00 zulu and you have no
> bug.
> 
> - Navneet
> 
> -----Original Message-----
> From: Ramaswamy, Muthu [mailto:mramaswamy@;gers.com]
> Sent: Wednesday, November 13, 2002 4:09 PM
> To: '[EMAIL PROTECTED]'
> Subject: Date Serialization by Apache Client.
> 
> 
> Hi All-
> 
> When I pass the Date with time component set to 00:00:00, Apache Client
> after serialization adds 8:00 hours to the time portion?
> 
> Do I have specify any special format or is it due to some kind of bug in
> serializer?. 
> 
> Here is a sample code I am using on the Axis Client
> ======================================
> 
> SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
> String textDate = "2002-11-11";  //required 10/29/2002 7:20:59 PM.
> Date requestDt = null;
> 
> try
> {
>    requestDt = sdf.parse(textDate);
> }
> catch (Exception e)
> {
>      System.out.println("Exception in Parsing Date");
> }
> 
> When I pass the above date, after Serialization, the output is:
> ============================================
>   
>  <requestDt>2002-11-11T08:00:00.000Z</requestDt>
> 
> I would expect to see 2002-11-11T00:00:00.000Z . Appreciate any input to
> resolve the problem.
> 
> Thanks.,
> 
> -Muthu
> 
>  


Reply via email to