[log_format] fix rollover when there is no date in the timestamp

Fixes #1178
pull/1179/head
Tim Stack 10 months ago
parent 45be4d3829
commit 1b31d7401a

@ -375,7 +375,7 @@ log_format::check_for_new_year(std::vector<logline>& 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;

Loading…
Cancel
Save