use leading zeros for date and ISO date format - reed-alert - Lightweight agentless alerting system for server
HTML git clone git://bitreich.org/reed-alert/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/reed-alert/
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
DIR LICENSE
---
DIR commit 3872389e3a225f3e64f74044c57cd600739c2b50
DIR parent 46c03914d4314e24b09bbdb7bff153e54bb3e4b4
HTML Author: Solène Rapenne <solene@perso.pw>
Date: Wed, 28 Jun 2023 10:54:58 +0200
use leading zeros for date and ISO date format
Diffstat:
M functions.lisp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/functions.lisp b/functions.lisp
@@ -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)