From b6e37d8207c2c3194496a8a22cd1b00e2296f8df Mon Sep 17 00:00:00 2001 From: Detanup01 <91248446+Detanup01@users.noreply.github.com> Date: Mon, 27 May 2024 14:50:35 +0200 Subject: [PATCH] crashprinter fix --- crash_printer/win.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/crash_printer/win.cpp b/crash_printer/win.cpp index 5d7b6034..67da0a7f 100644 --- a/crash_printer/win.cpp +++ b/crash_printer/win.cpp @@ -109,6 +109,7 @@ static void log_exception(LPEXCEPTION_POINTERS ex_pointers) auto now = std::chrono::system_clock::now(); auto t_now = std::chrono::system_clock::to_time_t(now); auto gm_time = std::gmtime(&t_now); + auto asc_time = std::asctime(gm_time); auto time = std::string(asc_time ? asc_time : ""); time.pop_back(); // remove the trailing '\n' added by asctime common_helpers::write(file, "[" + time + "]");