aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-05-30 21:26:30 +0200
committerRiccardo Spagni <ric@spagni.net>2017-05-30 21:26:30 +0200
commit2f724e5849d511481a65d0c612dec2bf5c346b45 (patch)
treeeefac27f29a6693364e6f5b5c0b25da54c3c5079
parentMerge pull request #2042 (diff)
parenteasylogging++: log timestamps in GMT for privacy (diff)
downloadmonero-2f724e5849d511481a65d0c612dec2bf5c346b45.tar.xz
Merge pull request #2054
977c2186 easylogging++: log timestamps in GMT for privacy (moneromooo-monero)
-rw-r--r--external/easylogging++/easylogging++.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/external/easylogging++/easylogging++.cc b/external/easylogging++/easylogging++.cc
index efa876664..721b2af15 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