mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
fix: change the format of the ascTime() function
This commit is contained in:
parent
f64ea2a708
commit
6248ac1c16
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user