libfmt >=8.0.0 compatibility

This commit is contained in:
John Helmert III
2021-06-29 21:29:12 -05:00
parent 36857ae72b
commit 368e4813de
2 changed files with 7 additions and 0 deletions

View File

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