From: Marius Gavrilescu Date: Fri, 24 Jan 2014 17:12:02 +0000 (+0200) Subject: Use strftime correctly X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=864be20fdc7711f572c3cd654fc04eb3a2d8c949;p=gruntmaster-page.git Use strftime correctly --- 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