Move sys_time fmt to date_time.cpp

This commit is contained in:
Megamouse 2025-02-24 21:46:48 +01:00
parent 9082908606
commit 709e3d2822
5 changed files with 16 additions and 7 deletions

View file

@ -511,13 +511,6 @@ void log_q_debug(QtMsgType type, const QMessageLogContext& context, const QStrin
}
}
template <>
void fmt_class_string<std::chrono::sys_time<typename std::chrono::system_clock::duration>>::format(std::string& out, u64 arg)
{
const std::time_t dateTime = std::chrono::system_clock::to_time_t(get_object(arg));
out += date_time::fmt_time("%Y-%m-%dT%H:%M:%S", dateTime);
}
void run_platform_sanity_checks()
{
#ifdef _WIN32