diff --git a/include/spdlog/details/pattern_formatter_impl.h b/include/spdlog/details/pattern_formatter_impl.h index f17f90f8..81835618 100644 --- a/include/spdlog/details/pattern_formatter_impl.h +++ b/include/spdlog/details/pattern_formatter_impl.h @@ -665,7 +665,8 @@ inline void spdlog::pattern_formatter::handle_flag(char flag) } } -inline std::tm spdlog::pattern_formatter::get_time(details::log_msg& msg) { +inline std::tm spdlog::pattern_formatter::get_time(details::log_msg& msg) +{ if (_pattern_time == pattern_time_type::local) return details::os::localtime(log_clock::to_time_t(msg.time)); else