Advertisement

02.15.2008 at 02:16AM PST, ID: 23165582
[x]
Attachment Details

Hibernate Timestamp using local timezone

Asked by mric5180 in IBM Websphere Application Server, Oracle Database, J2EE

Tags: , ,

Hi,

It appears as though hibernate uses the timezone of your PC to convert Java.sql.Timestamp objects before inserting the information into a database.

I'm wondering how do i get hibernate to use GMT all the time, but without doing a TimeZone.setDefault() call.

Using Oracle 9i in Websphere.

THanksStart Free Trial
 
Loading Advertisement...
 
[+][-]02.15.2008 at 02:45AM PST, ID: 20900628

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.15.2008 at 03:51AM PST, ID: 20900904

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: IBM Websphere Application Server, Oracle Database, J2EE
Tags: Hibernate, Java, Hibernate
Sign Up Now!
Solution Provided By: drazen_nikolic
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628