title: how to get local timezone datetime for date comparison in django
body: <p>I am trying to fire a reminder based on a users timezone.  The users timezone is 'America/New_York'</p>
  
  <p>I attempt to get the users time with the following:</p>
  
  <pre><code>now = datetime.now()
  now_plus_10 = test_customer.time_zone.localize(now + timedelta(minutes = 10))
  now_minus_10 = test_customer.time_zone.localize(now + timedelta(minutes = -10))
  </code></pre>
  
  <p>The reminder time is at 13:00.  It is gathered from the customer object like this:</p>
  
  <pre><code> reminder = customer.reminder #set to 13:00
  </code></pre>
  
  <p>I then want to send a reminder if within 10 minutes + or - of the reminder.</p>
  
  <p>I do the comparison like:</p>
  
  <pre><code>if reminder &gt; now_minus_10 and gb_real_time &lt; now_plus_10: 
      reminder_email.send()
  else:
      print 'ceiling '+str(now_plus_10)
      print 'not in window don t send'
      print 'floor '+str(now_minus_10)
  </code></pre>
  
  <p>This prints:  </p>
  
  <pre><code>ceiling 2014-09-03 10:10:54.547901-04:00  
  not in window don t send
  floor 2014-09-03 09:50:54.547901-04:00
  </code></pre>
  
  <p>I am in the timezone: 'America/Los_Angeles' in which it is 10:00am</p>
  
  <p>Why is it that even though I localized now_plus_10 and now_minus_10 dates, but they do not convert to New_York time which would make them 13:00 like the reminder and in turn fire the reminder?</p>