diff --git a/tests/test_pattern_formatter.cpp b/tests/test_pattern_formatter.cpp index 4d8459b2..76cac855 100644 --- a/tests/test_pattern_formatter.cpp +++ b/tests/test_pattern_formatter.cpp @@ -475,7 +475,7 @@ TEST_CASE("custom flags-exception", "[pattern_formatter]") TEST_CASE("override need_localtime", "[pattern_formatter]") { - auto formatter = std::make_shared(); + auto formatter = std::make_shared(spdlog::pattern_time_type::local, "\n"); formatter->add_flag('t', "time").set_pattern("%t> %v"); {