From c01fa28f9ae0807db063a4fffe8aceb451d793ae Mon Sep 17 00:00:00 2001 From: Odysseas Georgoudis Date: Mon, 24 Jul 2023 22:41:03 +0100 Subject: [PATCH] timestamp formatting bugfix --- quill/include/quill/Quill.h | 2 +- quill/src/detail/backend/StringFromTime.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/quill/include/quill/Quill.h b/quill/include/quill/Quill.h index d14e1e2b..18d7b390 100644 --- a/quill/include/quill/Quill.h +++ b/quill/include/quill/Quill.h @@ -27,7 +27,7 @@ namespace quill /** Version Info **/ constexpr uint32_t VersionMajor{2}; constexpr uint32_t VersionMinor{0}; -constexpr uint32_t VersionPatch{2}; +constexpr uint32_t VersionPatch{3}; constexpr uint32_t Version{VersionMajor * 10000 + VersionMinor * 100 + VersionPatch}; /** forward declarations **/ diff --git a/quill/src/detail/backend/StringFromTime.cpp b/quill/src/detail/backend/StringFromTime.cpp index 3105bad2..245ab863 100644 --- a/quill/src/detail/backend/StringFromTime.cpp +++ b/quill/src/detail/backend/StringFromTime.cpp @@ -144,7 +144,7 @@ std::string const& StringFromTime::format_timestamp(time_t timestamp) if (_time_zone == Timezone::LocalTime) { // Update the timestamp to point to the next hour, here we can just add 3600 as the _next_hour_timestamp was already rounded to point to sharp minutes before - _next_recalculation_timestamp = timestamp + 3600; + _next_recalculation_timestamp = next_hour_timestamp(timestamp); } else if (_time_zone == Timezone::GmtTime) {