Skip to content

Commit

Permalink
Use standard format specifiers in error timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
LBPHacker committed Sep 13, 2023
1 parent 9633cd2 commit 491e4dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tptmp/client/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ local function run()
local function handle_error(err)
if not last_trace_str then
local handle = io.open(config.trace_path, "wb")
handle:write(("TPTMP %s %s\n"):format(config.versionstr, os.date("%FT%TZ")))
handle:write(("TPTMP %s %s\n"):format(config.versionstr, os.date("!%Y-%m-%dT%H:%M:%SZ")))
handle:close()
win:backlog_push_error("An error occurred and its trace has been saved to " .. config.trace_path .. "; please find this file in your data folder and attach it when reporting this to developers")
win:backlog_push_error("Top-level error: " .. tostring(err))
Expand Down

0 comments on commit 491e4dc

Please sign in to comment.