From 825e10061422117e1d2b57ddda3f1fcd25ef90ef Mon Sep 17 00:00:00 2001 From: LunaMoo Date: Tue, 14 Nov 2017 07:42:58 +0100 Subject: [PATCH] Small changes. Thx [Unknown] --- Core/HLE/sceKernelTime.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/HLE/sceKernelTime.cpp b/Core/HLE/sceKernelTime.cpp index 19901cc721..ed391be28c 100644 --- a/Core/HLE/sceKernelTime.cpp +++ b/Core/HLE/sceKernelTime.cpp @@ -174,7 +174,7 @@ u32 sceKernelLibcGettimeofday(u32 timeAddr, u32 tzAddr) } std::string KernelTimeNowFormatted() { - time_t emulatedTime = (u32)start_time + (u32)(CoreTiming::GetGlobalTimeUs() / 1000000ULL); + time_t emulatedTime = (time_t)start_time + (u32)(CoreTiming::GetGlobalTimeUs() / 1000000ULL); tm* timePtr = localtime(&emulatedTime); bool DST = timePtr->tm_isdst; u8 seconds = timePtr->tm_sec; @@ -185,6 +185,6 @@ std::string KernelTimeNowFormatted() { u8 days = timePtr->tm_mday; u8 months = timePtr->tm_mon + 1; u16 years = timePtr->tm_year + 1900; - std::string timestamp = StringFromFormat("%04d-%02d-%02d %02d-%02d-%02d", years, months, days, hours, minutes, seconds).c_str(); + std::string timestamp = StringFromFormat("%04d-%02d-%02d %02d-%02d-%02d", years, months, days, hours, minutes, seconds); return timestamp; } \ No newline at end of file