From 103bd894d988b9ce35681ae2030758cb566b105e Mon Sep 17 00:00:00 2001 From: Jon Pentland Date: Fri, 21 Oct 2022 14:17:34 +0100 Subject: [PATCH] Use correct timezone when indexing comments --- plone/app/discussion/catalog.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plone/app/discussion/catalog.py b/plone/app/discussion/catalog.py index 6413d11..bc7bdeb 100644 --- a/plone/app/discussion/catalog.py +++ b/plone/app/discussion/catalog.py @@ -109,7 +109,7 @@ def effective(object): object.creation_date.hour, object.creation_date.minute, object.creation_date.second, - "GMT", + object.creation_date.tzname(), ) @@ -123,7 +123,7 @@ def created(object): object.creation_date.hour, object.creation_date.minute, object.creation_date.second, - "GMT", + object.creation_date.tzname(), ) @@ -137,7 +137,7 @@ def modified(object): object.modification_date.hour, object.modification_date.minute, object.modification_date.second, - "GMT", + object.modification_date.tzname(), )