cfind: improve clang compatibility

This commit is contained in:
Dirk-Jan C. Binnema 2022-04-04 23:44:20 +03:00
parent 1c7854930b
commit db963f66df
1 changed files with 2 additions and 2 deletions

View File

@ -316,8 +316,8 @@ each_contact(const Mu::Contact& ci, ECData& ecdata)
break;
case MU_CONFIG_FORMAT_DEBUG: {
char datebuf[32];
::strftime(datebuf, sizeof(datebuf), "%F %T",
gmtime(static_cast<const ::time_t*>(&ci.message_date)));
const auto mdate(static_cast<::time_t>(ci.message_date));
::strftime(datebuf, sizeof(datebuf), "%F %T", ::gmtime(&mdate));
g_print("%s\n\tname: %s\n\t%s\n\tpersonal: %s\n\tfreq: %zu\n"
"\tlast-seen: %s\n",
ci.email.c_str(),