From 6e94c20abdbb5284a78afbdca627f1528f78dbc3 Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Sat, 6 Aug 2022 22:25:30 -0700 Subject: [PATCH] add TODO for chrono in GetLocalTimeSinceJan1970 --- Source/Core/Common/Timer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Core/Common/Timer.cpp b/Source/Core/Common/Timer.cpp index 5e4af1ef45..91381eebd3 100644 --- a/Source/Core/Common/Timer.cpp +++ b/Source/Core/Common/Timer.cpp @@ -68,6 +68,10 @@ u64 Timer::ElapsedMs() const u64 Timer::GetLocalTimeSinceJan1970() { + // TODO Would really, really like to use std::chrono here, but Windows did not support + // std::chrono::current_zone() until 19H1, and other compilers don't even provide support for + // timezone-related parts of chrono. Someday! + // see https://bugs.dolphin-emu.org/issues/13007#note-4 time_t sysTime, tzDiff, tzDST; time(&sysTime); tm* gmTime = localtime(&sysTime);