From 7718acfde8cc68f290378bae8669f11d71c6331a Mon Sep 17 00:00:00 2001 From: TELK Date: Sat, 12 Nov 2016 02:55:41 +0900 Subject: [PATCH] Fix #4775: File name of screenshot that is taken at 00:xx is named wrong Use `GetLocalTime` instead of `GetSystemTime` --- src/platform/windows.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/windows.c b/src/platform/windows.c index 32fe6fb427..1d66caf4bc 100644 --- a/src/platform/windows.c +++ b/src/platform/windows.c @@ -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;