axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Murlidhar Hiware (JIRA)" <>
Subject [jira] [Commented] (AXIS-1557) xs:datetime to Calendar
Date Fri, 07 Feb 2014 09:01:31 GMT


Murlidhar Hiware commented on AXIS-1557:

I am facing similar issue. I am getting date Time in PST format from server but when it is
mapped to java.util.calendar object axis is again trying to convert it to PST format and adding
8 hrs to the date time. my systems time zone is PST, server time zone is same.
even after trying this cal.setTimeZone(java.util.TimeZone.getDefault()); there is no change
in time.
Please let me know what can i do if i want to get the time sent by server without conversion
because my server and client are in same zone

> xs:datetime to Calendar
> -----------------------
>                 Key: AXIS-1557
>                 URL:
>             Project: Axis
>          Issue Type: Bug
>    Affects Versions: 1.2 Beta
>         Environment: windows 2000/ java 1.4
>            Reporter: jon salabsab
> I don't know if this a bug or not but here is what we are experiencing:
> In axis, the xs:datetime field that gets converted into a java.util.Calendar object does
not have the correct time value based on the calendar object's TimeZone.
> Specifically:
> The server TimeZone is PST. The xml datetime field value
> comming in is 2004-08-23T06:17:40.000Z
> The calendar object will have the correct Timezone (GMT) but
> the actual time value is already adjusted to PST (which is 8 hours less). Shouldn't it
still be 2004-08-23T06:17:40 since the TimeZone in the Caledar object is GMT?

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message