mirror of
https://git.citron-emu.org/citron/emulator
synced 2026-01-08 10:47:56 +00:00
fix: Clang Compiler
This commit is contained in:
@@ -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 <ctime>
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user