diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-04-10 22:51:17 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-04-10 23:45:29 +0200 |
commit | 00a4235525734612ef9d5fb4205125e6a602afad (patch) | |
tree | db08c08526a5c71a504bef9772f984599c78fb68 /module | |
parent | Fix command line handling in test runner. (diff) | |
download | calp-00a4235525734612ef9d5fb4205125e6a602afad.tar.gz calp-00a4235525734612ef9d5fb4205125e6a602afad.tar.xz |
Term UI: Display end instead of start time for END.
Diffstat (limited to 'module')
-rw-r--r-- | module/calp/terminal.scm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/module/calp/terminal.scm b/module/calp/terminal.scm index 12609e17..316421eb 100644 --- a/module/calp/terminal.scm +++ b/module/calp/terminal.scm @@ -162,11 +162,11 @@ (date->string start)))) (format #t "\x1b[1m~a:\x1b[m ~a~%~%" (G_ "End") - (let ((start (prop ev 'DTSTART))) - (if (datetime? start) - (datetime->string (prop ev 'DTSTART) + (let ((end (prop ev 'DTEND))) + (if (datetime? end) + (datetime->string (prop ev 'DTEND) (G_ "~Y-~m-~d ~H:~M:~S")) - (date->string start)))) + (date->string end)))) (format #t "~a~%" (unlines (take-to (flow-text (or (prop ev 'DESCRIPTION) "") width: (min 70 width)) |