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:
parent
27af1d3464
commit
9b40113ec2
|
@ -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)))))
|
||||
|
|
Loading…
Reference in New Issue