diff --git a/common/utils/string.hpp b/common/utils/string.hpp index 079aa6715e..046e9b929a 100644 --- a/common/utils/string.hpp +++ b/common/utils/string.hpp @@ -114,7 +114,8 @@ template inline std::string format_epoch(T epoch_num) { if (std::in_range(epoch_num)) { const auto epoch = static_cast(epoch_num); - return fmt::format("{:%F %X}", std::chrono::system_clock::from_time_t(epoch)); + return fmt::format( + "{:%F %T}", std::chrono::round(std::chrono::system_clock::from_time_t(epoch))); } return fmt::format("{} seconds since Unix epoch", epoch_num); }