title: Using Django "now" template tag to compare dates
body: <p>I have a template tag that returns a date from a model field. If the date is today, I want to render some other content.
  Using the <strong>now</strong> builtin-templatetag: <a href="https://docs.djangoproject.com/en/1.11/ref/templates/builtins/#now" rel="nofollow noreferrer">https://docs.djangoproject.com/en/1.11/ref/templates/builtins/#now</a>, I used logic similar to the answer in this previously posted  answer:</p>
  
  <p><a href="https://stackoverflow.com/a/34959070/5616606">https://stackoverflow.com/a/34959070/5616606</a></p>
  
  <pre><code>{% now "Y-m-d" as todays %}
  {% if self.date|date:"Y-m-d" == todays %}
     ...add some content
  {% endif %}
  </code></pre>
  
  <p>I am trying to do this without creating a custom filter, context processor or edit the view. The problem, I believe, is with the <code>timezone</code>. This works until later in the evening when <strong>now</strong> returns the next day, instead of the current day. I researched Django's date and timezone documentation but am not sure how make the timezone returned from <strong>now</strong> match the timezone of the model field without having to create a context processor or edit the view.</p>