I have these dates and times:
schedule.day_start
I am trying to detect all schedules starting 60 minutes or less before day_start . With the following code, I get "NO" instead of "YES" as the response.
if schedule.day_start < (Time.now + 60.minutes) "YES" else "NO" end
Why is 2014-09-27 15:30:00 UTC greater than 2014-09-27 16:11:14 +0200 ?
date comparison ruby ruby-on-rails time
user984621
source share