Index: src/base/platform/platform-win32.cc |
diff --git a/src/base/platform/platform-win32.cc b/src/base/platform/platform-win32.cc |
index d4c2a10bd697cab501f9db460606af22c730b30f..080e6bc0af9c6f631285adb810861e50fc2ce1ae 100644 |
--- a/src/base/platform/platform-win32.cc |
+++ b/src/base/platform/platform-win32.cc |
@@ -46,9 +46,8 @@ inline void MemoryBarrier() { |
int localtime_s(tm* out_tm, const time_t* time) { |
- tm* posix_local_time_struct = localtime(time); // NOLINT |
+ tm* posix_local_time_struct = localtime_r(time, out_tm); |
if (posix_local_time_struct == NULL) return 1; |
- *out_tm = *posix_local_time_struct; |
return 0; |
} |