Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 312884

Summary: getDate() in XMLcalendar sometimes returned incorrect value caused by timezone
Product: [Modeling] EMF Reporter: tracy <wp004>
Component: XML/XMIAssignee: Ed Merks <Ed.Merks>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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.