Skip to Main Content

APEX

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!

how to set the time zone in an application

bigmac704Apr 10 2024

Hello

How can i set the time zone in an application so that it renders the correct time when inserting/updating a database. For some reason it is some times correct and other times it is incorrect. I am think due to daily savings time and or the time zone is not set right through apex. I only have one time zone to use but it does not render correctly 100% of the time in the database.

DECLARE
BEGIN
UPDATE CONTRACT_TIMEKEEPER T
SET T.TIME_OUT = LOCALTIMESTAMP, -- to_timestamp(LOCALTIMESTAMP,'YYYY-MM-DD HH:MI PM')
T.TIME_OUT_UTC = LOCALTIMESTAMP
WHERE T.WORK_DATE = :P3_TODAY
AND T.CONT_ID = :P5_CONT_ID
AND T.POSITION = :P3_POSITION
AND T.TIME_OUT IS NULL
AND T.SCH_ASSIGNED = :P3_SCH;
END;

This post has been answered by bigmac704 on Apr 10 2024
Jump to Answer
Comments
Post Details
Added on Apr 10 2024
1 comment
747 views