lib/mu: use fmt-based time/date formatting

For a small speedup
This commit is contained in:
Dirk-Jan C. Binnema
2023-08-05 10:53:11 +03:00
parent 27c07280b1
commit 4945e699c8
8 changed files with 22 additions and 24 deletions

View File

@ -140,7 +140,7 @@ view_msg_plain(const Message& message, const Options& opts)
print_field("Subject", message.subject(), color);
if (auto&& date = message.date(); date != 0)
print_field("Date", time_to_string("%c", date), color);
print_field("Date", mu_format("{:%c}", mu_time(date)), color);
print_field("Tags", join(message.tags(), ", "), color);