From ff88d4ae2ec565fa2aa00484c5a9dafe891855e9 Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Jan 07 2020 09:56:58 +0000 Subject: expect, that hub is returning GM time Fixes: https://pagure.io/koji/issue/1915 --- diff --git a/www/kojiweb/taskinfo.chtml b/www/kojiweb/taskinfo.chtml index 90a6ab0..ab83658 100644 --- a/www/kojiweb/taskinfo.chtml +++ b/www/kojiweb/taskinfo.chtml @@ -2,7 +2,7 @@ #from kojiweb import util #from six.moves.urllib.parse import quote #import cgi -#import time +#import datetime #def printValue($key, $value, $sep=', ') #if $key in ('brootid', 'buildroot_id') @@ -343,7 +343,7 @@ $value #set $end_ts = $task.completion_ts #end if #if not $end_ts - #set $end_ts = time.time() + #set $end_ts = datetime.datetime.utcnow().timestamp() #end if Total time