[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Fix date formatting (25c8416)

Marcel Fabian Krüger tex at 2krueger.de
Thu May 13 12:37:54 CEST 2021


Repository : https://github.com/latex3/luaotfload
On branch  : dev
Link       : https://github.com/latex3/luaotfload/commit/25c8416264477abbec96d0b88ee426a0e0dcce6c

>---------------------------------------------------------------

commit 25c8416264477abbec96d0b88ee426a0e0dcce6c
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Thu May 13 12:37:54 2021 +0200

    Fix date formatting


>---------------------------------------------------------------

25c8416264477abbec96d0b88ee426a0e0dcce6c
 src/luaotfload-configuration.lua | 2 +-
 src/luaotfload-diagnostics.lua   | 2 +-
 src/luaotfload-tool.lua          | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/luaotfload-configuration.lua b/src/luaotfload-configuration.lua
index 7b55ff4..5eec8d3 100644
--- a/src/luaotfload-configuration.lua
+++ b/src/luaotfload-configuration.lua
@@ -994,7 +994,7 @@ local function dump ()
   end
   if next(confdata) then
     iowrite (stringformat (conf_header,
-                           osdate ("%Y-%m-d %H:%M:%S", os.time ())))
+                           osdate ("%Y-%m-%d %H:%M:%S", os.time ())))
     iowrite (tableconcat (confdata, "\n"))
     iowrite (conf_footer)
   end
diff --git a/src/luaotfload-diagnostics.lua b/src/luaotfload-diagnostics.lua
index d84001d..e89ae4d 100644
--- a/src/luaotfload-diagnostics.lua
+++ b/src/luaotfload-diagnostics.lua
@@ -376,7 +376,7 @@ else
                 out ("Try again later at %s.", osdate ("%F %T", reset))
             else --- windows doesn’t C99
                 out ("Try again later at %s.",
-                     osdate ("%Y-%m-d %H:%M:%S", reset))
+                     osdate ("%Y-%m-%d %H:%M:%S", reset))
             end
         end
         return true
diff --git a/src/luaotfload-tool.lua b/src/luaotfload-tool.lua
index df05094..15a15d8 100644
--- a/src/luaotfload-tool.lua
+++ b/src/luaotfload-tool.lua
@@ -584,7 +584,7 @@ local function display_general (fullinfo)
                 --- the MS compiler doesn’t support C99, so
                 --- strftime is missing some functionality;
                 --- see loslib.c for details.
-                val = osdate("%Y-%m-d %H:%M:%S", fullinfo[key])
+                val = osdate("%Y-%m-%d %H:%M:%S", fullinfo[key])
             end
         end
         if not val then
@@ -834,7 +834,7 @@ local bisect_status_fmt  = [[
 local function write_bisect_status (data)
     local payload = tableserialize (data, true)
     local status  = stringformat (bisect_status_fmt,
-                                  osdate ("%Y-%m-d %H:%M:%S", os.time ()),
+                                  osdate ("%Y-%m-%d %H:%M:%S", os.time ()),
                                   payload)
     if status and iosavedata (bisect_status_file, status) then
         logreport ("info", 4, "bisect",





More information about the latex3-commits mailing list.