My Oracle Support Banner

SQL*Workshop Showing Time in UTC Instead of Correct Timezone (Doc ID 2771006.1)

Last updated on JULY 12, 2021

Applies to:

Oracle Application Express (APEX) - Version 18.1 and later
Information in this document applies to any platform.

Symptoms

ACTUAL BEHAVIOR
---------------
As sys/sysdba, APEX_XXXXXX, and parsing schema, the following statement returns the time in the server time zone:
SQL> select to_char(sysdate, 'DD-MON-YY HH:MI PM') from dual;
10-APR-21 10:15 AM


Running the following command in SQL*Workshop returns the time in UTC:
select to_char(sysdate, 'DD-MON-YY HH:MI PM') from dual;
10-APR-21 06:15 AM


EXPECTED BEHAVIOR
-----------------------
Running the following command in SQL*Workshop should return the time in the server time zone.:
select to_char(sysdate, 'DD-MON-YY HH:MI PM') from dual;

10-APR-21 10:15 AM

STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Run the following command in SQL*Workshop: select to_char(sysdate, 'DD-MON-YY HH:MI PM') from dual;


Changes

 The listener was restarted.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.