jeffkreeftmeijer / navvy

Simple Ruby background job processor inspired by delayed_job, but aiming for database agnosticism.
https://jeffkreeftmeijer.com
Other
215 stars 23 forks source link

Activerecord query in #next does not respect the configured DB timezone (or default UTC) #6

Open Xac opened 14 years ago

Xac commented 14 years ago

The #next method for the ActiveRecord adapter calls Time.now in the query. Time.now does not get converted to db time. This should be changed to Time.current to respect the database's time zone.