I am using a sysdate query in code to obtain the last updated rows in the past 3 hours (should be configurable). The database runs in GMT timezone and the application runs in PST timezone. The query looks like this
select * from <table> where updated_Date < sysdate - numdtodsinterval(3,'hour')
What is the recommended/best practice to firing such queries from application which has different timezones from the db.