mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
MODSEC-273
This commit is contained in:
@@ -626,7 +626,7 @@ char *current_logtime(apr_pool_t *mp) {
|
|||||||
apr_strftime(tstr, &len, 80, "%d/%b/%Y:%H:%M:%S ", &t);
|
apr_strftime(tstr, &len, 80, "%d/%b/%Y:%H:%M:%S ", &t);
|
||||||
apr_snprintf(tstr + strlen(tstr), 80 - strlen(tstr), "%c%.2d%.2d",
|
apr_snprintf(tstr + strlen(tstr), 80 - strlen(tstr), "%c%.2d%.2d",
|
||||||
t.tm_gmtoff < 0 ? '-' : '+',
|
t.tm_gmtoff < 0 ? '-' : '+',
|
||||||
t.tm_gmtoff / (60 * 60), t.tm_gmtoff % (60 * 60));
|
t.tm_gmtoff / (60 * 60), (t.tm_gmtoff / 60) % 60);
|
||||||
return apr_pstrdup(mp, tstr);
|
return apr_pstrdup(mp, tstr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user