Skip to Main Content

SQL & PL/SQL

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!

sysdate & current_date

GusoraMay 6 2014 — edited May 12 2014

My client and db timezones are set as follows:

db > select dbtimezone from dual;

DBTIME

------

+00:00

db > select sessiontimezone from dual;

SESSIONTIMEZONE

---------------------------------------

+01:00

but when I query I get the following. I was expecting the dbtime to be UTC i.e. 7:47am

I should add I am running on a standalone laptop for study purposes.

db > select to_char(sysdate,'FMdd-MONTH-yyyy hh:mi') TIME from dual;

TIME

--------------------------------------------------

6-MAY-2014 8:47

db > select to_char(current_date,'FMdd-MONTH-yyyy hh:mi') TIME from dual;

TIME

--------------------------------------------------

6-MAY-2014 8:48

Just ran this (@11:43am) and expected 'SYSTIMESTAMP' to output UTC time (i.e. 10:43am) not '+01:00' ????

db > select dbtimezone from dual;

DBTIME

------

+00:00

db > select systimestamp from dual;

SYSTIMESTAMP

-------------------------------------

06-MAY-14 11.43.17.451000 +01:00

Message was edited by: Gusora

This post has been answered by Moazzam on May 6 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 9 2014
Added on May 6 2014
9 comments
1,290 views