Permalink
Browse files

Small changes. Thx [Unknown]

  • Loading branch information...
LunaMoo committed Nov 14, 2017
1 parent aba4a4d commit 825e10061422117e1d2b57ddda3f1fcd25ef90ef
Showing with 2 additions and 2 deletions.
  1. +2 −2 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;
}

0 comments on commit 825e100

Please sign in to comment.