I have a Model with this scope:
scope :next_week, lambda { where("date > (?) and date <= (?)", Date.today, Date.today + 1.weeks ) }
However, it changes the date too early for me, as I want the app's time as (and the server is on UTC):
config.time_zone = 'Eastern Time (US & Canada)'
I've seen posts on using in_time_zone
to convert Time.now to the config time.
Why doesn't `config.time_zone` seem to do anything?
Is there anything like that for dates? Or could someone recommend an approach to adjusting my date queries to calculate Date.today
to the local date? Thank you!