diff options
author | Sergey Kandaurov <pluknet@nginx.com> | 2016-03-31 02:34:00 +0300 |
---|---|---|
committer | Sergey Kandaurov <pluknet@nginx.com> | 2016-03-31 02:34:00 +0300 |
commit | 6a716c612378ea1673f38d3de9a467a47b5fe1ad (patch) | |
tree | 2dbef4a7b2121100aceba861a9c8f0a7d9634f64 /src/core/ngx_times.c | |
parent | 00ef9ff5f03ce7e98ba64c3644da25e5a0d659fc (diff) | |
download | nginx-6a716c612378ea1673f38d3de9a467a47b5fe1ad.tar.gz |
Fixed format specifiers in ngx_sprintf().
Diffstat (limited to 'src/core/ngx_times.c')
-rw-r--r-- | src/core/ngx_times.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ngx_times.c b/src/core/ngx_times.c index 595c1224d..843314aba 100644 --- a/src/core/ngx_times.c +++ b/src/core/ngx_times.c @@ -154,7 +154,7 @@ ngx_time_update(void) p2 = &cached_http_log_time[slot][0]; - (void) ngx_sprintf(p2, "%02d/%s/%d:%02d:%02d:%02d %c%02d%02d", + (void) ngx_sprintf(p2, "%02d/%s/%d:%02d:%02d:%02d %c%02i%02i", tm.ngx_tm_mday, months[tm.ngx_tm_mon - 1], tm.ngx_tm_year, tm.ngx_tm_hour, tm.ngx_tm_min, tm.ngx_tm_sec, @@ -163,7 +163,7 @@ ngx_time_update(void) p3 = &cached_http_log_iso8601[slot][0]; - (void) ngx_sprintf(p3, "%4d-%02d-%02dT%02d:%02d:%02d%c%02d:%02d", + (void) ngx_sprintf(p3, "%4d-%02d-%02dT%02d:%02d:%02d%c%02i:%02i", tm.ngx_tm_year, tm.ngx_tm_mon, tm.ngx_tm_mday, tm.ngx_tm_hour, tm.ngx_tm_min, tm.ngx_tm_sec, |