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