The default date format in nginx autoindex
HTML directory listings is 19-Jun-2019
. Can I change it to ISO YYYY-MM-DD format instead?
The default date format in nginx autoindex
HTML directory listings is 19-Jun-2019
. Can I change it to ISO YYYY-MM-DD format instead?
No, it does not seem possible.
Based on the source code, the line that seems to generate the date is at https://trac.nginx.org/nginx/browser/nginx/src/http/modules/ngx_http_autoindex_module.c#L630 :
So the datetime specification is hardcoded and does not seem to be configurable. There are various other spots above or below this line that takes an assumption on the datetime final length so it is not a simple matter of changing this line in code and recompiling.