This commit is contained in:
fawdlstty 2021-02-26 10:17:43 +08:00
parent f4b7210e7b
commit dd46579cb4

View File

@ -45,7 +45,7 @@ struct daily_filename_format_calculator
// Create filename by formatting %Y_%m_%d.log
static filename_t calc_filename (const filename_t &filename, const tm &now_tm)
{
std::string fmt_filename = fmt::format("{{:{}}}", filename);
filename_t fmt_filename = fmt::format("{{:{}}}", filename);
return fmt::format(fmt_filename, now_tm);
}
};