01 ISO 8601.patch (1072B)
- --- nginx-1.12.1/src/http/modules/ngx_http_autoindex_module.c.old 2017-08-12 17:06:14.873525862 +0200
- +++ nginx-1.12.1/src/http/modules/ngx_http_autoindex_module.c 2017-08-12 17:07:32.167042961 +0200
- @@ -455,9 +455,6 @@
- "</html>" CRLF
- ;
- - static char *months[] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun",
- - "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" };
- -
- if (r->headers_out.charset.len == 5
- && ngx_strncasecmp(r->headers_out.charset.data, (u_char *) "utf-8", 5)
- == 0)
- @@ -617,9 +614,9 @@
- ngx_gmtime(entry[i].mtime + tp->gmtoff * 60 * alcf->localtime, &tm);
- - b->last = ngx_sprintf(b->last, "%02d-%s-%d %02d:%02d ",
- + b->last = ngx_sprintf(b->last, "%02d-%02d-%02d %02d:%02d ",
- tm.ngx_tm_mday,
- - months[tm.ngx_tm_mon - 1],
- + tm.ngx_tm_mon,
- tm.ngx_tm_year,
- tm.ngx_tm_hour,
- tm.ngx_tm_min);