I have a mysql DATETIME value that is stored in system time, UTC. I need to convert that to my local timezone in django. Here is what I currently have:
DATETIME
It took me a while to find this, but this is how I solved it. I guess the user's timezone from IP address and then do this in Django 2 and beyond:
{% load tz %} {% timezone "Europe/Paris" %} Paris time: {{ object.date }} {% endtimezone %}