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 ax...@ws.apache.org on 2004/09/16 00:44:37 UTC
[jira] Created: (AXIS-1557) xs:datetime to Calendar
Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/AXIS-1557
Here is an overview of the issue:
---------------------------------------------------------------------
Key: AXIS-1557
Summary: xs:datetime to Calendar
Type: Bug
Status: Unassigned
Priority: Major
Project: Axis
Versions:
1.2 Beta
Assignee:
Reporter: jon salabsab
Created: Wed, 15 Sep 2004 3:43 PM
Updated: Wed, 15 Sep 2004 3:43 PM
Environment: windows 2000/ java 1.4
Description:
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?
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
[jira] Closed: (AXIS-1557) xs:datetime to Calendar
Posted by ax...@ws.apache.org.
Message:
The following issue has been closed.
Resolver: Tom Jordahl
Date: Wed, 29 Sep 2004 8:21 AM
I believe Ashutosh is correct and this is working as designed.
Please reopen if you think there is really a defect here.
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/AXIS-1557
Here is an overview of the issue:
---------------------------------------------------------------------
Key: AXIS-1557
Summary: xs:datetime to Calendar
Type: Bug
Status: Closed
Priority: Major
Resolution: CANNOT REPRODUCE
Project: Axis
Versions:
1.2 Beta
Assignee:
Reporter: jon salabsab
Created: Wed, 15 Sep 2004 3:43 PM
Updated: Wed, 29 Sep 2004 8:21 AM
Environment: windows 2000/ java 1.4
Description:
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?
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
[jira] Commented: (AXIS-1557) xs:datetime to Calendar
Posted by ax...@ws.apache.org.
The following comment has been added to this issue:
Author: Ashutosh Shahi
Created: Wed, 29 Sep 2004 2:28 AM
Body:
Jon,
You are right that the xml dateTime value and the java.util.Calendar value obtained from it have GMT timezone. But the getTime method of Calendar gives you the time accoriding to the current Timezone of your system, in your case PST.
To set the TimeZone according to your system's TimeZone you can do:
cal.setTimeZone(java.util.TimeZone.getDefault());
after you have received the dateTime value in java.util.Calendar object.
Ashutosh
---------------------------------------------------------------------
View this comment:
http://issues.apache.org/jira/browse/AXIS-1557?page=comments#action_53486
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/AXIS-1557
Here is an overview of the issue:
---------------------------------------------------------------------
Key: AXIS-1557
Summary: xs:datetime to Calendar
Type: Bug
Status: Unassigned
Priority: Major
Project: Axis
Versions:
1.2 Beta
Assignee:
Reporter: jon salabsab
Created: Wed, 15 Sep 2004 3:43 PM
Updated: Wed, 29 Sep 2004 2:28 AM
Environment: windows 2000/ java 1.4
Description:
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?
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira