Print Thread
Need help with column displays
#25431 03/20/07 07:43 AM
Joined: Mar 2007
Posts: 4
M
Member
OP Offline
Member
M
Joined: Mar 2007
Posts: 4
Working with a proprietary db setup using Oracle 9.2. Issue: db writes all DATE fields in GMT even though the work is done in CST or CDT. IS it possible to write a procedure using the tools to convert all date fields to CST or CDT whenever I view them using pl/sql developer? I saw there is a tools menu but I'm new to this program.

Re: Need help with column displays
#25432 03/20/07 11:00 PM
Joined: Aug 1999
Posts: 22,206
Member
Offline
Member
Joined: Aug 1999
Posts: 22,206
What is the exact data type of these columns?


Marco Kalter
Allround Automations
Re: Need help with column displays
#25433 03/22/07 06:23 AM
Joined: Mar 2007
Posts: 4
M
Member
OP Offline
Member
M
Joined: Mar 2007
Posts: 4
DATE

Re: Need help with column displays
#25434 03/23/07 03:57 AM
Joined: Feb 2006
Posts: 14
Plano, Texas USA
C
Member
Offline
Member
C
Joined: Feb 2006
Posts: 14
Plano, Texas USA
DATE datatype has no timezone quality whatsoever.

It is up to the application to put in the right values. If the application has relegated that preogative to something like a default SYSDATE quality on a column, then it will use the SYSDATE of the database server - not the application server - not the client.

Read up on TIMESTAMP datatypes. There are several varieties, one that allows containing timezone quality is what you need.


Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.029s Queries: 14 (0.011s) Memory: 2.5088 MB (Peak: 3.0395 MB) Data Comp: Off Server Time: 2024-04-29 02:27:18 UTC
Valid HTML 5 and Valid CSS