From 9b40113ec2df6af39cbf9c2aa12781751fd0b331 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Fri, 17 Apr 2020 14:12:07 +0200 Subject: templates: Fix typo in 'time->string'. This is a followup to a1d353b1527fd1a2bfa2a1cbb2f0ff5c79d6e973. Until now we'd never display the year. * src/cuirass/templates.scm (time->string): Check for (= year current). --- src/cuirass/templates.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cuirass/templates.scm b/src/cuirass/templates.scm index 31a0863..a8beb17 100644 --- a/src/cuirass/templates.scm +++ b/src/cuirass/templates.scm @@ -411,7 +411,7 @@ system whose names start with " (code "guile-") ":" (br) (date (time-utc->date time)) (year (date-year date)) (current (date-year (time-utc->date now*))) - (format (if (= year ) + (format (if (= year current) "~e ~b ~H:~M ~z" "~e ~b ~Y ~H:~M ~z"))) (date->string date format))))) -- cgit v1.2.3