From 491e4dcee69be391fefb83a9a288bd0876f11925 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20B=C3=A1lint=20Misius?= Date: Wed, 13 Sep 2023 08:27:18 +0200 Subject: [PATCH] Use standard format specifiers in error timestamps --- tptmp/client/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tptmp/client/init.lua b/tptmp/client/init.lua index 4890519..ea97e4d 100644 --- a/tptmp/client/init.lua +++ b/tptmp/client/init.lua @@ -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))