title: How to show local time in html?
body: <p>I have the Django project with the Model to save date_added information. Here's the Model code.</p>
  
  <pre><code>class Outputting(models.Model):
      date_added = models.DateTimeField(auto_now_add=True)
  </code></pre>
  
  <p>And I want to retrieve such date_added information and demonstrate it as the local time in the html. How could I make the transformation? Here's the view.py and html template, but it still show the UTC time.</p>
  
  <p>view.py</p>
  
  <pre><code>def results(request):
      user = request.user
      data = Outputting.objects.filter(owner=user).order_by('id').values_list('id','date_added')
      return render(request, "xx.html", {"data": data})
  </code></pre>
  
  <p>Html:</p>
  
  <pre><code>&lt;tr&gt;
  {% for i in data %}
  &lt;td style="word-wrap:break-word;"&gt;&lt;div class="panel-body" type="datetime-local"&gt;&lt;small&gt;{{ i.1|date:'M d Y H:i:s' }}&lt;/small&gt;&lt;/div&gt;&lt;/td&gt;
  &lt;/tr class="something"&gt;
  {% endfor %}
  </code></pre>