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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user