Bug 60846

Summary: PR34014 / r903052 changed date format for autoindex
Product: Apache httpd-2 Reporter: Eric Covener <covener>
Component: mod_autoindexAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 2.5-HEAD   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Attachments: Proposed patch

Description Eric Covener 2017-03-11 15:23:44 UTC
http://svn.apache.org/viewvc?view=revision&revision=903052

Looks inadvertent in context


@@ -1823,11 +1843,11 @@
                     apr_time_exp_t ts;
                     apr_time_exp_lt(&ts, ar[x]->lm);
                     apr_strftime(time_str, &rv, MAX_STRING_LEN,
-                                "%d-%b-%Y %H:%M  ", &ts);
+                                "%Y-%m-%d %H:%M  ", &ts);
                     ap_rputs(time_str, r);
                 }

I saw concerns from two 2.2->2.4 users in two weeks (fluke) which made me look again.  I hope to add an IndexOption to allow people to put it back.
Comment 1 Hank Ibell 2017-03-15 04:54:34 UTC
Created attachment 34827 [details]
Proposed patch
Comment 2 Christophe JAILLET 2018-03-24 12:27:56 UTC
Backported in 2.4.x in r1789963

This is part of 2.4.26