From 6491a53e72c9f2f4f9301664d8228a35a3ad889b Mon Sep 17 00:00:00 2001 From: collecting Date: Sun, 5 Oct 2025 02:25:57 +0000 Subject: [PATCH] fix: Clang Compiler --- src/core/reporter.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/reporter.cpp b/src/core/reporter.cpp index 424bb63c7..929ddeec0 100644 --- a/src/core/reporter.cpp +++ b/src/core/reporter.cpp @@ -1,4 +1,5 @@ // SPDX-FileCopyrightText: Copyright 2019 yuzu Emulator Project +// SPDX-FileCopyrightText: Copyright 2025 citron Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later #include @@ -33,7 +34,9 @@ std::filesystem::path GetPath(std::string_view type, u64 title_id, std::string_v std::string GetTimestamp() { const auto time = std::time(nullptr); - return fmt::format("{:%FT%H-%M-%S}", *std::localtime(&time)); + char time_buf[128]; + std::strftime(time_buf, sizeof(time_buf), "%FT%H-%M-%S", std::localtime(&time)); + return std::string(time_buf); } using namespace nlohmann;