From 864be20fdc7711f572c3cd654fc04eb3a2d8c949 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Fri, 24 Jan 2014 19:12:02 +0200 Subject: [PATCH] Use strftime correctly --- lib/Gruntmaster/Page/Ct/Entry.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Gruntmaster/Page/Ct/Entry.pm b/lib/Gruntmaster/Page/Ct/Entry.pm index 6266661..9414de8 100644 --- a/lib/Gruntmaster/Page/Ct/Entry.pm +++ b/lib/Gruntmaster/Page/Ct/Entry.pm @@ -25,9 +25,9 @@ sub _generate{ $htc->param(id => $path); $htc->param(name => contest_name $path); - $htc->param(start => strftime '%c', contest_start); - $htc->param(end => strftime '%c', contest_end); - $htc->param(started => time >= contest_start); + $htc->param(start => strftime '%c', localtime contest_start $path); + $htc->param(end => strftime '%c', localtime contest_end $path); + $htc->param(started => time >= contest_start $path); } 1 -- 2.39.2