I'm working on an application where I have a schedule where first item start at 5am and the last item ends at 3am of the next day, but I need to treat it as if it's the same day.
I know it will involve a lot of custom date queries on my models, but I'd like to know if there's a good approach I can do in Rails, to handle this "hour shift"
Somewhat related questions I found before posting:
You can use following date range while querying.
Here, you can use (n-1).days to n.days
Hope this is useful