I am trying to do a selection for Outprojects with start date within this week;
Outproject.where('start_at > ? and start_at < ?', Time.now.at_beginning_of_week.to_time,(Time.now.at_beginning_of_week + 5.days).to_time)
This works without problem locally (running postgresql), but on heroku it gives a empty result (even though it should not).
I have tried with .to_time (as above), with .to_date and without anything and DateTime instead of Time. Any suggestions?