diff options
author | Ludovic Courtès <ludo@gnu.org> | 2020-04-17 14:12:07 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2020-04-17 15:07:17 +0200 |
commit | 9b40113ec2df6af39cbf9c2aa12781751fd0b331 (patch) | |
tree | 60a927720c9dedf0635410eaa09c2bd8e1d353d0 | |
parent | 27af1d34646f4e3fca09283cb52caa8b89cbb2b1 (diff) | |
download | cuirass-9b40113ec2df6af39cbf9c2aa12781751fd0b331.tar cuirass-9b40113ec2df6af39cbf9c2aa12781751fd0b331.tar.gz |
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).
-rw-r--r-- | src/cuirass/templates.scm | 2 |
1 files changed, 1 insertions, 1 deletions
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))))) |