mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
misc: change variable name to match GetSystemTime more
This commit is contained in:
parent
cbd757773a
commit
928e457043
|
|
@ -23,7 +23,7 @@ typedef struct _SYSTEMTIME {
|
|||
inline VOID GetSystemTime(LPSYSTEMTIME lpSystemTime) {
|
||||
const auto dateTime = system_clock::now();
|
||||
const auto dp = floor<days>(dateTime);
|
||||
|
||||
|
||||
const year_month_day ymd{dp};
|
||||
const hh_mm_ss hms{dateTime - dp};
|
||||
const weekday wd{dp};
|
||||
|
|
@ -43,11 +43,11 @@ inline VOID GetLocalTime(LPSYSTEMTIME lpSystemTime) {
|
|||
const auto dateTime = system_clock::now();
|
||||
|
||||
const auto tz = current_zone();
|
||||
const auto tpl = tz->to_local(dateTime);
|
||||
const auto dp = floor<days>(tpl);
|
||||
const auto dateTimeLocal = tz->to_local(dateTime);
|
||||
const auto dp = floor<days>(dateTimeLocal);
|
||||
|
||||
const year_month_day ymd{dp};
|
||||
const hh_mm_ss hms{tpl - dp};
|
||||
const hh_mm_ss hms{dateTimeLocal - dp};
|
||||
const weekday wd{dp};
|
||||
|
||||
lpSystemTime->wYear = ymd.year();
|
||||
|
|
|
|||
Loading…
Reference in a new issue