From ad547cb4acfe7a69cbe1eef455b0ded61430f8d5 Mon Sep 17 00:00:00 2001 From: ewanshin Date: Mon, 30 May 2016 21:41:05 +0900 Subject: [PATCH] add missing line add missing line --- include/spdlog/sinks/file_sinks.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/spdlog/sinks/file_sinks.h b/include/spdlog/sinks/file_sinks.h index 2bbc0c3c..21f0ee03 100644 --- a/include/spdlog/sinks/file_sinks.h +++ b/include/spdlog/sinks/file_sinks.h @@ -282,6 +282,7 @@ private: now += hours(1); time_t tnow = std::chrono::system_clock::to_time_t(now); tm date = spdlog::details::os::localtime(tnow); + date.tm_min = 0; date.tm_sec = 0; auto rotation_time = std::chrono::system_clock::from_time_t(std::mktime(&date)); return rotation_time;