title: Date/Time comparison in ruby
body: <p>I have these dates and times:</p>
  
  <pre><code>schedule.day_start    # =&gt; 2014-09-27 15:30:00 UTC
  date_now = Time.now   # =&gt; 2014-09-27 15:11:14 +0200
  date_now + 60.minutes # =&gt; 2014-09-27 16:11:14 +0200
  </code></pre>
  
  <p>I am trying to detect all schedules that start 60 minutes or less before <code>day_start</code>. With the following code, I get as a response <code>"NO"</code> instead of <code>"YES"</code>.</p>
  
  <pre><code>if schedule.day_start &lt; (Time.now + 60.minutes)
    "YES"
  else
    "NO"
  end
  </code></pre>
  
  <p>Why is <code>2014-09-27 15:30:00 UTC</code> bigger than <code>2014-09-27 16:11:14 +0200</code>?</p>