Skip to content

Commit 6248ac1

Browse files
committed
fix: change the format of the ascTime() function
1 parent f64ea2a commit 6248ac1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/string.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ inline std::string ascTime(const time_t *t) {
7474
struct tm timeinfo;
7575
localtime_r(t, &timeinfo);
7676
char tstr[std::size("Www Mmm dd hh:mm:ss yyyy")];
77-
strftime(tstr, std::size(tstr), "%c", &timeinfo);
77+
strftime(tstr, std::size(tstr), "%a %b %d %H:%M:%S %Y", &timeinfo);
7878
return tstr;
7979
}
8080

0 commit comments

Comments
 (0)