1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-30 10:15:36 +01:00

Fix #12352: Wrong date format for file names (#12543)

Issue likely caused by 5ae592ec79

Also see: https://en.cppreference.com/w/cpp/chrono/c/tm
This commit is contained in:
TELK
2020-08-02 01:43:19 +09:00
committed by GitHub
parent 88bad7729c
commit bf08943929

View File

@@ -75,8 +75,8 @@ namespace Platform
rct2_date outDate;
outDate.day = localTime->tm_mday;
outDate.day_of_week = localTime->tm_wday;
outDate.month = localTime->tm_mon;
outDate.year = localTime->tm_year;
outDate.month = localTime->tm_mon + 1;
outDate.year = localTime->tm_year + 1900;
return outDate;
}