fix some warnings

This commit is contained in:
Megamouse 2023-02-21 23:28:43 +01:00
parent c20aa2ad5f
commit 38d612e5ba
3 changed files with 5 additions and 15 deletions

View file

@ -3,8 +3,6 @@
#include <iostream>
#include <chrono>
#include <sstream>
#include <iomanip>
#include <QApplication>
#include <QCommandLineParser>
@ -28,6 +26,7 @@
#include "headless_application.h"
#include "Utilities/sema.h"
#include "Utilities/date_time.h"
#include "Crypto/decrypt_binaries.h"
#ifdef _WIN32
#include "module_verifier.hpp"
@ -410,11 +409,8 @@ 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)
{
std::ostringstream ss;
const std::time_t dateTime = std::chrono::system_clock::to_time_t(get_object(arg));
const std::tm tm = *std::localtime(&dateTime);
ss << std::put_time(&tm, "%Y-%m-%eT%H:%M:%S");
out += ss.str();
out += date_time::fmt_time("%Y-%m-%eT%H:%M:%S", dateTime);
}
void run_platform_sanity_checks()