Skip to content

Commit 491e4dc

Browse files
committed
Use standard format specifiers in error timestamps
1 parent 9633cd2 commit 491e4dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tptmp/client/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ local function run()
221221
local function handle_error(err)
222222
if not last_trace_str then
223223
local handle = io.open(config.trace_path, "wb")
224-
handle:write(("TPTMP %s %s\n"):format(config.versionstr, os.date("%FT%TZ")))
224+
handle:write(("TPTMP %s %s\n"):format(config.versionstr, os.date("!%Y-%m-%dT%H:%M:%SZ")))
225225
handle:close()
226226
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")
227227
win:backlog_push_error("Top-level error: " .. tostring(err))

0 commit comments

Comments
 (0)