fix: change the format of the ascTime() function

This commit is contained in:
Ervin Hegedus 2025-06-07 11:53:38 +02:00
parent f64ea2a708
commit 6248ac1c16
No known key found for this signature in database
GPG Key ID: 5FA5BC3F5EC41F61

View File

@ -74,7 +74,7 @@ inline std::string ascTime(const time_t *t) {
struct tm timeinfo; struct tm timeinfo;
localtime_r(t, &timeinfo); localtime_r(t, &timeinfo);
char tstr[std::size("Www Mmm dd hh:mm:ss yyyy")]; char tstr[std::size("Www Mmm dd hh:mm:ss yyyy")];
strftime(tstr, std::size(tstr), "%c", &timeinfo); strftime(tstr, std::size(tstr), "%a %b %d %H:%M:%S %Y", &timeinfo);
return tstr; return tstr;
} }