Probably the easiest thing to do is to cast the timestamp
s to time
s and use localtime
:
opens_at::time > localtime or localtime < closes_at::time
...
Rails will have everything in UTC inside the database (including the database connection) so you don't have to worry about time zone issues.