On 2/4/22 09:48, Andy Summers wrote:
Hello,
I'm encountering an error that sounds similar to this previous thread:
https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/...
I've tried setting my TIME_ZONE to 'UTC' in my settings.py and settings_local.py files (and restarting Mailman), but when I check the datetime for a held message in Postorius, the datetime seems to be pushed +8 hours unexpectedly.
My Postorius account time zone is set to "US/Pacific".
The appropriate setting for Django is always TIME_ZONE = 'UTC'
because
the time passed from Mailman core is a naive datetime.datetime object
and is actually UTC. This should then display the time in your account
timezone since Postorius 1.3.4. See
https://gitlab.com/mailman/postorius/-/merge_requests/531
If this isn't working in Postorius >=1.3.4, it's a Django issue.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan