On Thu, May 28, 2020, at 2:02 PM, Brian Carpenter wrote:
I have the server TZ set to EST. I have the TZ for Postfix set to EST. I have the following set in my settings_local.py file:
TIME_ZONE = 'America/New_York' USE_TZ = True
However messages showing up in the pending moderation queue box shows UTC date. I am seeing this behavior in Affinity as well so I figured it is either a Mailman core setting or perhaps database? Can anyone shed light on that?
I think that's because we display as-is values in the UI. Core really doesn't need to be aware of the TZ related info IMO, it is the responsibility of UI (Django!) to record the user's/UIs preferred timezone info and use that with the datetime objects.
The offending line1 for held messages is this, which simply formats the datetime to a specific "format" but we need to also format it to localtime using perhaps 2. There would be similar values for other places where date time objects are presented in the UI.
The change is simple enough, if you can open a ticket, it should be simple enough to fix I think.
Brian
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
-- thanks, Abhilash Raj (maxking)