Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 336990 - Timezone lost when doing multiple date/time conversions
Summary: Timezone lost when doing multiple date/time conversions
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-11 13:24 EST by Rick Barkhouse CLA
Modified: 2022-06-09 10:35 EDT (History)
0 users

See Also:


Attachments
Proposed patch. (12.89 KB, patch)
2011-02-11 15:46 EST, Rick Barkhouse CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rick Barkhouse CLA 2011-02-11 13:24:57 EST
When doing multiple date/time conversions during marshal/unmarshal, time zone information can be lost.  For example:

XMLGregorianCalendar1 -> xml -> Calendar -> xml -> XMLGregorianCalendar2

XMLGregorianCalendar1 should equal XMLGregorianCalendar2 but currently the timezone information is lost.
Comment 1 Rick Barkhouse CLA 2011-02-11 15:46:48 EST
Created attachment 188815 [details]
Proposed patch.
Comment 2 Rick Barkhouse CLA 2011-02-11 15:48:14 EST
Fixed, reviewed by mmacivor.

New test case: DateAndTimeTestCases :: testMultiConversion()
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:35:15 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink