You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Murlidhar Hiware (JIRA)" <ax...@ws.apache.org> on 2014/02/07 10:01:31 UTC

[jira] [Commented] (AXIS-1557) xs:datetime to Calendar

    [ https://issues.apache.org/jira/browse/AXIS-1557?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13894326#comment-13894326 ] 

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: https://issues.apache.org/jira/browse/AXIS-1557
>             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
(v6.1.5#6160)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org