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

Open
Xac opened this Issue Nov 8, 2010 · 0 comments

Comments

Projects
None yet
1 participant
@Xac

Xac commented Nov 8, 2010

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment