Update clock.cpp

This commit is contained in:
Alex 2022-01-24 09:21:56 +01:00 committed by GitHub
parent 667d0a45f4
commit 65dd245362
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -233,9 +233,8 @@ 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;
auto& tm_format = specs;
#endif
// 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);
return format_to(ctx.out(), "{}", date::format(t.locale, fmt::to_string(tm_format), t.ztime));
}
};