Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 312884 - getDate() in XMLcalendar sometimes returned incorrect value caused by timezone
Summary: getDate() in XMLcalendar sometimes returned incorrect value caused by timezone
Status: CLOSED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: XML/XMI (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Ed Merks CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-14 06:09 EDT by tracy CLA
Modified: 2010-05-19 06:43 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tracy CLA 2010-05-14 06:09:24 EDT
Build Identifier: org.eclipse.emf.ecore_2.3.1.v200709252135

if initialize one XMLCalendar instance with string value "2005-12-17T09:30:47.0Z", the getDate() value is "Sat Dec 17 09:30:47 CST 2005". it is not correct, the right value should be "Sat Dec 17 17:30:47 CST 2005".

Reproducible: Always

Steps to Reproduce:
1.XMLCalendar calendar = new XMLCalendar("2005-12-17T09:30:47.0Z", XMLCalendar.DATETIME);
		
2.System.out.println("date:" + calendar.getDate());
3. returned value is "Sat Dec 17 09:30:47 CST 2005", expected result is "Sat Dec 17 17:30:47 CST 2005"
Comment 1 Ed Merks CLA 2010-05-17 09:32:22 EDT
A fix has been committed to CVS for 2.6.
Comment 2 Ed Merks CLA 2010-05-19 06:43:13 EDT
The changes are in 2.6RC1.