Henrik Rasmussen writes:
Fra: Mark Sapiro <mark@msapiro.net>
It should be TIME_ZONE = 'UTC'
Times passed from Mailman core are naive times, I.e. they don't have time zone info, but they are in UTC.
Mark is saying that Mailman core converts to UTC. All times that come out of Mailman core in the relevant API are UTC.
As stackoverflow.com/questions/29311354/how-to-set-the-timezone-in-django seems to say otherwise ("You can use TIME_ZONE = 'Europe/Istanbul'"), to make sure, am I right to understand it as for Mailman, Danish time should be stated as "TIME_ZONE = 'UTC+1' " with use of "USE_TZ = True"?
No, USE_TZ=True means "hey Django, you need to add a time zone to this datetime." And you use TIME_ZONE=UTC (exactly), because this variable is *not* the local time zone, it's the time zone that Postorius tells Django to add to datetime objects that don't carry their timezone with them. There is a setting somewhere else that tells Django what time zone should be used for I/O.
Steve