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

rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]> Sun, 28 Jun 2026 14:33:53 -0400
Newsgroups gmane.comp.systems.archos.rockbox.cvs
Message-ID <[email protected]>
commit d9b1819e0b5396ac1594f4e39e5b6e86d01fb806
Author: William Wilgus <[email protected]>
Date:   Sun Jun 28 14:32:33 2026 -0400

    FS#13942 - Lua strftime os.date("%C")
    
    Change-Id: I5a4cb8d362a69d12c2d7e5013dcf179cc20d01b3

diff --git a/apps/plugins/lua/include_lua/strftime.lua b/apps/plugins/lua/include_lua/strftime.lua
index d12dd650a3..0079d6fecb 100644
--- a/apps/plugins/lua/include_lua/strftime.lua
+++ b/apps/plugins/lua/include_lua/strftime.lua
@@ -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)
-- 
rockbox-cvs mailing list
[email protected]
https://lists.haxx.se/mailman/listinfo/rockbox-cvs