logo

etc_portage

Unnamed repository; edit this file 'description' to name the repository. git clone https://hacktivis.me/git/etc_portage.git

01 ISO 8601.patch (1166B)


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