1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 03:23:15 +01:00

Fix #4775: File name of screenshot that is taken at 00:xx is named wrong

Use `GetLocalTime` instead of `GetSystemTime`
This commit is contained in:
TELK
2016-11-12 02:55:41 +09:00
committed by Ted John
parent 0496cf6bd8
commit 7718acfde8

View File

@@ -196,7 +196,7 @@ void platform_get_date_local(rct2_date *out_date)
assert(out_date != NULL);
SYSTEMTIME systime;
GetSystemTime(&systime);
GetLocalTime(&systime);
out_date->day = systime.wDay;
out_date->month = systime.wMonth;
out_date->year = systime.wYear;