diff --git a/src/modules/date.cpp b/src/modules/date.cpp index 76bd08d7..56945489 100644 --- a/src/modules/date.cpp +++ b/src/modules/date.cpp @@ -38,7 +38,7 @@ std::string betweenDate(const auto& from, const auto& to, DateFormat dateFormat) { const auto size = std::chrono::duration_cast(to - from).count(); - const auto randomDateWithinRange = from + std::chrono::seconds{number::integer(size - 1)}; + const auto randomDateWithinRange = from + std::chrono::seconds{number::integer(size - 1)}; return serializeTimePoint(randomDateWithinRange, dateFormat); }