Skip to content

Commit

Permalink
libruleset: shorten format string
Browse files Browse the repository at this point in the history
Signed-off-by: He Xian <[email protected]>
  • Loading branch information
hexian000 committed Nov 10, 2024
1 parent d698a99 commit 624fac0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libruleset.lua
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ local function evlog_(now, msg)
end

local function format_timestamp(t)
local s = os.date("%Y-%m-%dT%T%z", t)
local s = os.date("%FT%T%z", t)
return s:sub(1, -3) .. ":" .. s:sub(-2, -1)
end
_G.format_timestamp = format_timestamp
Expand Down

0 comments on commit 624fac0

Please sign in to comment.