| Summary: | getDate() in XMLcalendar sometimes returned incorrect value caused by timezone | ||
|---|---|---|---|
| Product: | [Modeling] EMF | Reporter: | tracy <wp004> |
| Component: | XML/XMI | Assignee: | Ed Merks <Ed.Merks> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
A fix has been committed to CVS for 2.6. The changes are in 2.6RC1. |
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"