mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
fix: make days local again
This commit is contained in:
parent
8ac7182074
commit
7ee035b295
|
|
@ -26,7 +26,7 @@ typedef struct _SYSTEMTIME {
|
||||||
|
|
||||||
inline VOID GetSystemTime(LPSYSTEMTIME lpSystemTime) {
|
inline VOID GetSystemTime(LPSYSTEMTIME lpSystemTime) {
|
||||||
const auto dateTime = system_clock::now();
|
const auto dateTime = system_clock::now();
|
||||||
const auto dp = floor<std::chrono::days>(dateTime);
|
const auto dp = floor<days>(dateTime);
|
||||||
|
|
||||||
const year_month_day ymd{dp};
|
const year_month_day ymd{dp};
|
||||||
const hh_mm_ss hms{dateTime - dp};
|
const hh_mm_ss hms{dateTime - dp};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue