From 1fdc7b6792199cfc37bdb43948b82523a8b8f91a Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Wed, 16 Jul 2014 07:24:13 +0200 Subject: [log,db] fix options to os.date() on non-posix systems Fixes https://github.com/lualatex/luaotfload/issues/233 On non-POSIX systems, the Lua interpeter is compiled with a reduced set of options accepted by ``os.date()`` [0]. [0] http://www.lua.org/source/5.2/loslib.c.html#LUA_STRFTIMEOPTIONS --- src/luaotfload-database.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/luaotfload-database.lua') diff --git a/src/luaotfload-database.lua b/src/luaotfload-database.lua index 7a01ca6..4c5522e 100644 --- a/src/luaotfload-database.lua +++ b/src/luaotfload-database.lua @@ -357,7 +357,7 @@ mtx-fonts has in names.tma: --- string list -> string option -> dbobj local initialize_namedata = function (formats, created) - local now = os.date "%F %T" + local now = os.date "%Y-%m-%d %H:%M:%S" --- i. e. "%F %T" on POSIX systems return { --families = { }, status = { }, -- was: status; map abspath -> mapping -- cgit v1.2.3