I am using oracle apex when ever I try the code
SELECT TO_CHAR (SYSTIMESTAMP) "NOW" FROM DUAL
The result is always behind 5 hours. Can any one help me for this query?
I am using oracle apex when ever I try the code
SELECT TO_CHAR (SYSTIMESTAMP) "NOW" FROM DUAL
The result is always behind 5 hours. Can any one help me for this query?
Copyright © 2021 Jogjafile Inc.
To get the time on the database server:
Or, if you want to format it as a string:
If you want the time on the client then:
or, you can take the system time and convert it to local time:
(Or you can format either as a string by wrapping it in
TO_CHAR)Note: when you state "The result is always behind 5 hours", you need to make sure you also compare time zones.
db<>fiddle here