From 1b31d7401ab07c411bc6aac6d16897f639f7f42a Mon Sep 17 00:00:00 2001 From: Tim Stack Date: Sat, 29 Jul 2023 14:37:35 -0700 Subject: [PATCH] [log_format] fix rollover when there is no date in the timestamp Fixes #1178 --- src/log_format.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/log_format.cc b/src/log_format.cc index e9bec8e2..9a9ed66f 100644 --- a/src/log_format.cc +++ b/src/log_format.cc @@ -375,7 +375,7 @@ log_format::check_for_new_year(std::vector& dst, off_month = 1; } else if (!(etm.et_flags & ETF_DAY_SET) && (diff >= (60 * 60))) { off_day = 1; - } else if (!(etm.et_flags & ETF_DAY_SET)) { + } else if (!(etm.et_flags & ETF_HOUR_SET) && (diff >= 60)) { off_hour = 1; } else { do_change = false;