axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [jira] Commented: (AXIS-1575) when sending DateTime data, number of hours in Calendar is not being sent properly
Date Wed, 29 Sep 2004 08:52:32 GMT
The following comment has been added to this issue:

     Author: Ashutosh Shahi
    Created: Wed, 29 Sep 2004 1:51 AM
Hi Sreeram,
        The problem you are facing is because dateTime is always sent in GMT Timezone over
the wire, i guess EST is -5 GMT. To get over the issue, once your endpoint receives the dateTime
you can do the following:
Once you receive the dateTime in a java.util.Calendar, do:


This will set the received the dateTime according to the current timezone.
Hope this helps.
View this comment:

View the issue:

Here is an overview of the issue:
        Key: AXIS-1575
    Summary: when sending DateTime data, number of hours in Calendar is not being sent properly
       Type: Bug

     Status: Unassigned
   Priority: Minor

    Project: Axis

   Reporter: sreeram

    Created: Tue, 28 Sep 2004 8:17 AM
    Updated: Wed, 29 Sep 2004 1:51 AM

when creating a Calendar object as follows

java.util.Calendar cal = new java.util.GregorianCalendar();

			cal.set(Calendar.YEAR, 2001);
			cal.set(Calendar.MONTH, Calendar.DECEMBER);
			cal.set(Calendar.DATE, 17);
			cal.set(Calendar.HOUR, 0);
			cal.set(Calendar.HOUR_OF_DAY, 0);
		cal.set(Calendar.MINUTE, 0);
			cal.set(Calendar.SECOND, 0);
			cal.set(Calendar.MILLISECOND, 0);

we are setting the Hours to 0.

The format being used is new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'.'S'Z'");

But when the Request is being sent over the Wire using Axis 1_2beta tools , the End Point
Service is receiving the dateTime data as 
<TradeDate xmlns="">2001-12-17T05:00:00.000Z</TradeDate>

the number of hours is being incremented by 5. And because of that , the correct trade is
not being identified in the Database. we are in the EST TimeZone.

How do we resolve this issue? Any suggestions or tips is greatly appreciated.



This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:

If you want more information on JIRA, or have a bug to report see:

View raw message