summaryrefslogtreecommitdiff
path: root/dev-libs/dynolog/files/dynolog-0.3.1_p20230126-libcxx.patch
blob: 64e51ae8c63396456fc09346f07c585499f8a0c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
dynolog mixes high_resolution_clock with system_clock, which is not allowed
Upstream PR: https://github.com/facebookincubator/dynolog/pull/276
--- a/hbt/src/common/Defs.h
+++ b/hbt/src/common/Defs.h
@@ -40,7 +40,7 @@ template <class TStream>
 TStream& LogCtxt(TStream& oss) {
   oss << "pid: " << gettid() << " on ";
   // Put date and time.
-  auto p = std::chrono::high_resolution_clock::now();
+  auto p = std::chrono::system_clock::now();
   auto t_c = std::chrono::system_clock::to_time_t(p);
   oss << std::put_time(std::localtime(&t_c), "%F %T");
   // Put microseconds.