-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Oracle time zone
PostPosted: Thu Apr 26, 2007 9:31 am 
Newbie

Joined: Thu Apr 26, 2007 8:58 am
Posts: 1
I'm using hibernate 3.2. I map a column like that:
Code:
<property name="myDate" update="true" insert="true"
         type="java.util.Calendar" not-null="false" />


Then I save object with myDate "Tue May 01 00:00:00 GMT 2007".
When I retrieve the data from HSQLDB myDate.getTime() returns : "Tue May 01 02:00:00 CEST 2007" (correct at my time zone).
From Oracle I get: "Tue May 01 00:00:00 CEST 2007" (incorrect - wrong time zone).In DB in Oracle myDate is TIMESTAMP WITH TIME ZONE. It is stored correctly.

How do I retrieve Calendar from Oracle correctly?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.