created a hotfix for libfmt-8.1.0 and above

pull/1312/head
mazunki 2022-01-08 01:44:46 +01:00
parent d22d6a4522
commit 2301788a81
1 changed files with 3 additions and 2 deletions

View File

@ -233,8 +233,9 @@ struct fmt::formatter<waybar_time> : fmt::formatter<std::tm> {
template <typename FormatContext> template <typename FormatContext>
auto format(const waybar_time& t, FormatContext& ctx) { auto format(const waybar_time& t, FormatContext& ctx) {
#if FMT_VERSION >= 80000 #if FMT_VERSION >= 80000
auto& tm_format = specs; //auto& tm_format = specs;
#endif #endif
return format_to(ctx.out(), "{}", date::format(t.locale, fmt::to_string(tm_format), t.ztime)); // return format_to(ctx.out(), "{}", date::format(t.locale, fmt::to_string(tm_format), t.ztime));
return fmt::formatter<std::tm>::format((const std::tm&) t, ctx);
} }
}; };