Skip to Main Content

Oracle Database Discussions

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!

storing dates

743731Feb 5 2010 — edited Feb 6 2010
Hey all-

I have a date column (actually, a lot of them). All our dates are stored in EST (that of the server). Now we have an app that processes everything in GMT. That is, when it inserts into the database, it creates date literals in GMT, and when it retrieves data from the database, it assumes the values are in GMT. Is there a way to instruct the Oracle client to automagically do this conversion (i.e., convert from GMT at the client into EST at the server and vice versa upon retrieval)? I have tried ALTER SESSION SET time_zone = 'GMT' but it doesn't appear to have any effect on the DATE datatype. I suspect I'll need to convert all our DATEs to TIMESTAMP WITH TIME ZONE, but obviously would like to avoid that. Any ideas?

Thanks
Rob
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 6 2010
Added on Feb 5 2010
7 comments
1,125 views