Skip to content
Snippets Groups Projects
Commit 9b40113e authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

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

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

* src/cuirass/templates.scm (time->string): Check for (= year current).
parent 27af1d34
No related branches found
No related tags found
No related merge requests found
......@@ -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)))))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment