Commit d38f89ca authored by gabime's avatar gabime

Fixed daily_file_sink compilation under c++20

parent 9c90fe82
...@@ -53,7 +53,7 @@ struct daily_filename_format_calculator ...@@ -53,7 +53,7 @@ struct daily_filename_format_calculator
#if defined(_MSC_VER) && defined(SPDLOG_WCHAR_FILENAMES) // for some reason msvc doesnt allow fmt::runtime(..) with wchar here #if defined(_MSC_VER) && defined(SPDLOG_WCHAR_FILENAMES) // for some reason msvc doesnt allow fmt::runtime(..) with wchar here
return fmt::format(fmt_filename, now_tm); return fmt::format(fmt_filename, now_tm);
#else #else
return fmt::format(fmt_filename, now_tm); return fmt::format(fmt::runtime(fmt_filename), now_tm);
#endif #endif
} }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment