templates: Fix typo in 'time->string'.

This is a followup to a1d353b152.
Until now we'd never display the year.

* src/cuirass/templates.scm (time->string): Check for (= year current).
This commit is contained in:
Ludovic Courtès 2020-04-17 14:12:07 +02:00
parent 27af1d3464
commit 9b40113ec2
1 changed files with 1 additions and 1 deletions

View File

@ -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)))))