mirror of https://git.kore.io/kore.git
use server time.
This commit is contained in:
parent
afd76ff55d
commit
3faf89d83d
|
@ -106,7 +106,7 @@ kore_accesslog_write(const void *data, u_int32_t len)
|
|||
(void)kore_strlcpy(addr, "-", sizeof(addr));
|
||||
|
||||
time(&now);
|
||||
tm = gmtime(&now);
|
||||
tm = localtime(&now);
|
||||
(void)strftime(tbuf, sizeof(tbuf), "%d/%b/%Y:%H:%M:%S %z", tm);
|
||||
|
||||
l = asprintf(&buf,
|
||||
|
|
Loading…
Reference in New Issue