Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Use of CURRENT_DATE vs SYSDATE and DST
All,
I had a developer ask me a question today that I missed in our discussion regarding the DST patches. He showed me where:
SQL> select to_char(sysdate,'mm/dd/yyyy hh24:mi:ss'),
2 to_char(current_date,'mm/dd/yyyy hh24:mi:ss')
3 from dual;
Sysdate Current Date
----------------------------- -----------------------------
03/22/2007 15:14:24 03/22/2007 16:14:25
So after patching my database with the current DST patch (and not patching the client), the value of CURRENT_DATE is incorrect - it is 15:14 right now. And what the heck does CURRENT_DATE return? One hour ahead? I would expect it to be one hour behind (at 14:14) until the end of March.
Does this make sense? And when I applied the client patches, the value of CURRENT_DATE did not change???
I told my developer to not use CURRENT_DATE - stick to SYSDATE.
Tom
--
http://www.freelists.org/webpage/oracle-l
Received on Thu Mar 22 2007 - 14:19:14 CDT
![]() |
![]() |