mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-07-10 13:29:52 -04:00
FS#13942 - Lua strftime os.date("%C")
Change-Id: I5a4cb8d362a69d12c2d7e5013dcf179cc20d01b3
This commit is contained in:
parent
24b0254d96
commit
d9b1819e0b
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue