-----Oprindelig meddelelse----- Fra: Mark Sapiro <mark@msapiro.net> Sendt: 8. februar 2022 07:48 Til: mailman-users@mailman3.org Emne: [MM3-users] Re: Time Zone Issue in Postorius
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. Thus for Django to get the correct time with time zone you need USE_TZ = True (without that, Django will throw an exception about naive times) and the TIME_ZONE to apply is UTC.
As https://stackoverflow.com/questions/29311354/how-to-set-the-timezone-in-djan... 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"?
/Henrik Rasmussen