Hi all,
I am having an issue with the :new_records_only option of database extractions: In my transactional system, all database-side timestamps are in UTC (Rails does its magic to convert everything to local time on the frontend). But since the ETL process runs separately from Rails, the automagic timezone conversion does not apply, and the :new_records_only option generates a query with a local timestamps instead of UTC. As a result, the extraction fails to pick up the latest changes (at GMT+9, I loose 9 hours worth of data).
How can I make the database extraction generate the right query, with a UTC timestamp? Things I tried but did not work so far:
- Time.zone = 'Asia/Tokyo'
- ENV['TZ'] = 'Asia/Tokyo'
- ActiveRecord::Base.default_timezone = 'Asia/Tokyo'
Thank you,
--
Yves-Eric