From 7b6a9d15cf1c47a0c9e4d1e83043213fd786c9bb Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jun 29 2017 16:40:28 +0000 Subject: Assume the data provided are already UTC Otherwise, if the server itself doesn't run on the UTC timezone the date ends up being converted to UTC, potentially a second time then. Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/lib/git.py b/pagure/lib/git.py index 486b76f..8ab5afc 100644 --- a/pagure/lib/git.py +++ b/pagure/lib/git.py @@ -611,7 +611,7 @@ def update_ticket_from_git( user=usercomment.username, ticketfolder=None, notify=False, - date_created=datetime.datetime.utcfromtimestamp( + date_created=datetime.datetime.fromtimestamp( float(comment['date_created'])), )