Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JAXB Unmarshalling a DateTime adds 1 hour.

843834Jul 15 2003 — edited Sep 11 2003
Hello,

I was wondering if anybody could tell me how to fix my problem where the xml file for a date is just say 2003-07-15T07:40:00-5:00 inside the xml file and then when I unmarshall the object it comes out as

2003-07-15 08:40:00

Does anybody know why this happends? I do a print out of the xml file right before I send the stream to the unmarshaller and it reads 7 but then right after from the object is instantiated I print it out and I get 8.

Thanks,
Ny
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 9 2003
Added on Jul 15 2003
26 comments
1,638 views