FS#13942 - Lua strftime os.date("%C")

Change-Id: I5a4cb8d362a69d12c2d7e5013dcf179cc20d01b3
This commit is contained in:
William Wilgus 2026-06-28 14:32:33 -04:00
parent 24b0254d96
commit d9b1819e0b

View file

@ -86,7 +86,7 @@ local function strftime(tmfmt, tm)
--local idx = tm.hour > 12 and 2 or 1
out = tm.hour > 12 and "pm" or "am"
elseif c == "C" then
local no = (tm.year / 100) + 19
local no = (tm.year / 100)
out = strformat("%02d", no)
elseif c == "d" then
out = strformat("%02d", tm.day)