From 66eb5e3da462ba0c53a16d92b1a4b616e890fa5f Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sat, 18 Jan 2020 10:24:49 +0100 Subject: [PATCH] Fix missing handling of optional NTP format string --- site-lisp/db-utils.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/site-lisp/db-utils.el b/site-lisp/db-utils.el index b5a480c..7679934 100644 --- a/site-lisp/db-utils.el +++ b/site-lisp/db-utils.el @@ -220,7 +220,8 @@ FORMAT-STRING defaults to some ISO 8601-like format." ;; we explicitly call `calcFunc-unixtime' ;; here to set the time zone to UTC 0))) - (format "%04d-%02d-%02dT%02d:%02d:%012.9fZ" + (format (or format-string + "%04d-%02d-%02dT%02d:%02d:%012.9fZ") (calcFunc-year unix-time) (calcFunc-month unix-time) (calcFunc-day unix-time)