You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jaxme-dev@ws.apache.org by ja...@ws.apache.org on 2004/10/18 10:47:51 UTC
[jira] Closed: (JAXME-42) XsDateTimeFormat - wrong month
Message:
The following issue has been closed.
Resolver: Jochen Wiedmann
Date: Mon, 18 Oct 2004 1:47 AM
Fixed in HEAD and 0.3 branch.
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/JAXME-42
Here is an overview of the issue:
---------------------------------------------------------------------
Key: JAXME-42
Summary: XsDateTimeFormat - wrong month
Type: Bug
Status: Closed
Priority: Major
Resolution: FIXED
Project: JaxMe
Components:
JaxMeXS
Assignee:
Reporter: Markus Holzner
Created: Mon, 18 Oct 2004 12:53 AM
Updated: Mon, 18 Oct 2004 1:47 AM
Description:
I encountered a problem in the XsDateTimeFomat class. The implementation does not consider that in the Calendar class the month value starts with 0. This means that January has the value 0 and not 1. But if the XsDateTimeFormat class parses the string 2004-10-15T13:00:00Z then the month value of the internal Calendar object is set to 10. But for the Calendar object this is the month november and not october. The same happens when a Calendar object is converted to a string. The value (cal.get(Calendar.MONTH)) is appended to the String Buffer but this means that october (value 9 in Calendar object) is directly printed out. But then I get 2004-09-15T13:00:00Z. The solution is to add the value 1 (Calendar-> String) or subtract the value 1 (String -> Calendar).
---------------------------------------------------------------------
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
---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org