mirror of https://github.com/OpenRCT2/OpenRCT2.git
Use localtime instead of gmtime in file browser.
This commit is contained in:
parent
c0becabcb8
commit
786806e116
|
@ -73,14 +73,14 @@ namespace Platform
|
||||||
std::string FormatShortDate(std::time_t timestamp)
|
std::string FormatShortDate(std::time_t timestamp)
|
||||||
{
|
{
|
||||||
char date[20];
|
char date[20];
|
||||||
std::strftime(date, sizeof(date), "%x", std::gmtime(×tamp));
|
std::strftime(date, sizeof(date), "%x", std::localtime(×tamp));
|
||||||
return std::string(date);
|
return std::string(date);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string FormatTime(std::time_t timestamp)
|
std::string FormatTime(std::time_t timestamp)
|
||||||
{
|
{
|
||||||
char time[20];
|
char time[20];
|
||||||
std::strftime(time, sizeof(time), "%X", std::gmtime(×tamp));
|
std::strftime(time, sizeof(time), "%X", std::localtime(×tamp));
|
||||||
return std::string(time);
|
return std::string(time);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue