1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 19:13:07 +01:00

Use localtime instead of gmtime in file browser.

This commit is contained in:
Aaron van Geffen
2018-08-14 20:43:19 +02:00
parent c0becabcb8
commit 786806e116

View File

@@ -73,14 +73,14 @@ namespace Platform
std::string FormatShortDate(std::time_t timestamp)
{
char date[20];
std::strftime(date, sizeof(date), "%x", std::gmtime(&timestamp));
std::strftime(date, sizeof(date), "%x", std::localtime(&timestamp));
return std::string(date);
}
std::string FormatTime(std::time_t timestamp)
{
char time[20];
std::strftime(time, sizeof(time), "%X", std::gmtime(&timestamp));
std::strftime(time, sizeof(time), "%X", std::localtime(&timestamp));
return std::string(time);
}