https://bz.apache.org/bugzilla/show_bug.cgi?id=69373
Bug ID: 69373 Summary: Make DefaultServlet's HTML listing file last modified rendering better (flexible) Product: Tomcat 9 Version: 9.0.95 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P2 Component: Catalina Assignee: dev@tomcat.apache.org Reporter: micha...@apache.org Target Milestone: ----- Right now the format is fixed to (unreadable) RFC 5322, section 3.3. No way to change or default to ISO 8601. To make it more accessible and flexible I have a two fold improval proposal: 1. Introduce a "protected String renderTimestamp(long timestamp)" method which will invoke org.apache.tomcat.util.http.FastHttpDateFormat.formatDate(long) identical to what getLastModifiedHttp() returns now. This will allow people to override it, but retain the current behavior (output format). 2. Introduce two new servlet parameters: "lastModifiedFormat" (SimpleDateFormat), "lastModifiedTimeZone" (if desired locale as well). If none set, the above kicks in, if at least lastModifiedFormat is set create a ConcurrentDateFormat member. I'd split this into two commits. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org