diff --git a/cpp_src/events/serializer.h b/cpp_src/events/serializer.h index 7a1aeadfd..dd55e6bdd 100644 --- a/cpp_src/events/serializer.h +++ b/cpp_src/events/serializer.h @@ -31,7 +31,7 @@ class UpdateSerializer { ser_.PutVarint(opts.ServerID()); } if (opts.IsWithTimestamp()) { - ser_.PutVarint(rec.Timestamp().time_since_epoch().count()); + ser_.PutVarint(std::chrono::duration_cast(rec.Timestamp().time_since_epoch()).count()); } // WrSerializer tmpSer;