]> iEval git - plack-app-gruntmaster.git/commitdiff
Use strftime correctly
authorMarius Gavrilescu <marius@ieval.ro>
Fri, 24 Jan 2014 17:12:02 +0000 (19:12 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Fri, 24 Jan 2014 17:12:02 +0000 (19:12 +0200)
lib/Gruntmaster/Page/Ct/Entry.pm

index 6266661e39c288d4112c2a5c475ec87224968857..9414de8465daffd927e3e7125d7c1335b931184e 100644 (file)
@@ -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
This page took 0.02231 seconds and 4 git commands to generate.