misc: change variable name to match GetSystemTime more

This commit is contained in:
izzy 2026-03-03 21:22:24 -05:00
parent cbd757773a
commit 928e457043

View file

@ -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();