Is the database timezone DBTIMEZONE
the same like your session timezone SESSIONTIMEZONE
?
Function SYSTIMESTAMP
returns datatye TIMESTAMP WITH TIME ZONE
, so you do an implicit convertion into TIMESTAMP
datatype.
Datatype of LOCALTIMESTAMP
is TIMESTAMP
.
Try
starttime timestamp WITH TIME ZONE := systimestamp;
or
starttime timestamp := LOCALTIMESTAMP;
You can check with this query in which timezone the Schedule Jobs are running:
SELECT * FROM ALL_SCHEDULER_GLOBAL_ATTRIBUTE where attribute_name = 'DEFAULT_TIMEZONE'