i am using spring jdbc template. i am compairing time in query which is not working as sysdate consider timezone.
select * from Emp where TSLASTMODIFIED < SYSDATE - ( 45/(24*60));
i am using spring jdbc template. i am compairing time in query which is not working as sysdate consider timezone.
select * from Emp where TSLASTMODIFIED < SYSDATE - ( 45/(24*60));
If you apply the information in the linked answer you get:
select * from Emp where TSLASTMODIFIED < CAST(sys_extract_utc(SYSTIMESTAMP) AS DATE) - ( 45/(24*60));
If TSLASTMODIFIED uses some other timezone than UTC you need to modify the SQL accordingly.