From 977c2186c9f126b56e714698f6be94ea5751d8b9 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Sun, 28 May 2017 13:20:27 +0100 Subject: [PATCH] easylogging++: log timestamps in GMT for privacy --- external/easylogging++/easylogging++.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/external/easylogging++/easylogging++.cc b/external/easylogging++/easylogging++.cc index efa87666..721b2af1 100644 --- a/external/easylogging++/easylogging++.cc +++ b/external/easylogging++/easylogging++.cc @@ -1164,19 +1164,19 @@ unsigned long long DateTime::getTimeDifference(const struct timeval& endTime, co struct ::tm* DateTime::buildTimeInfo(struct timeval* currTime, struct ::tm* timeInfo) { #if ELPP_OS_UNIX time_t rawTime = currTime->tv_sec; - ::localtime_r(&rawTime, timeInfo); + ::gmtime_r(&rawTime, timeInfo); return timeInfo; #else # if ELPP_COMPILER_MSVC ELPP_UNUSED(currTime); time_t t; _time64(&t); - localtime_s(timeInfo, &t); + gmtime_s(timeInfo, &t); return timeInfo; # else // For any other compilers that don't have CRT warnings issue e.g, MinGW or TDM GCC- we use different method time_t rawTime = currTime->tv_sec; - struct tm* tmInf = localtime(&rawTime); + struct tm* tmInf = gmtime(&rawTime); *timeInfo = *tmInf; return timeInfo; # endif // ELPP_COMPILER_MSVC