diff --git a/rmw_zenoh_cpp/src/detail/rmw_subscription_data.cpp b/rmw_zenoh_cpp/src/detail/rmw_subscription_data.cpp index 4f21300b..14f1ed8f 100644 --- a/rmw_zenoh_cpp/src/detail/rmw_subscription_data.cpp +++ b/rmw_zenoh_cpp/src/detail/rmw_subscription_data.cpp @@ -71,7 +71,7 @@ void sub_data_handler(z_loaned_sample_t * sample, void * data) sub_data->add_new_message( std::make_unique( slice, - z_timestamp_ntp64_time(z_sample_timestamp(sample)), + std::chrono::system_clock::now().time_since_epoch().count(), std::move(attachment)), topic_name); }