[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Ludovic Courtès |
Date: |
Fri, 17 Apr 2020 09:08:08 -0400 (EDT) |
branch: master
commit 9b40113ec2df6af39cbf9c2aa12781751fd0b331
Author: Ludovic Courtès <address@hidden>
AuthorDate: Fri Apr 17 14:12:07 2020 +0200
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)))))