use leading zeros for date and ISO date format

This commit is contained in:
Solène Rapenne 2023-06-28 10:54:58 +02:00
parent 46c03914d4
commit 3872389e3a
Signed by: solene
GPG Key ID: 8CD42DFD57F0A909
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@
(multiple-value-bind
(second minute hour day month year)
(get-decoded-time)
(format nil "~a/~a/~a ~a:~a:~a" year month day hour minute second))))
(format nil "~d-~2,'0d-~2,'0d ~2,'0d:~2,'0d:~2,'0d" year month day hour minute second))))
command-string))
(defmacro stop-if-error(&body body)