-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new apache date format for file listings in http sources #4610
Conversation
year = reDateTimeApacheNewFormat.GetMatch(1); | ||
hour = reDateTimeApacheNewFormat.GetMatch(4); | ||
minute = reDateTimeApacheNewFormat.GetMatch(5); | ||
} |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Sorry about the spaces, Xcode defaults to 4 spaces =) Tested this on old apache format and new apache format, seems to work fine. |
Agreed - mayaswell save on the conversion. |
jenkins build this please |
|
||
if (month.length() > 0) { | ||
monthNum = CDateTime::MonthStringToMonthNum(month); | ||
} |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Thanks - please squash down to a single commit. |
Squashed. Hope it's all good =) |
Thanks! jenkins build this please. |
Add new apache date format for file listings in http sources
According to Apache source code ( http://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/generators/mod_autoindex.c ), the date format changed long time ago from "10-jan-2014" to "2014-01-10" .
Before the date format was: "%d-%b-%Y %H:%M "
I didn't find the specific svn revision where this changed, but Apache 2.2 already had this date format for a long time.
This patch adds a new apache date file format so it's compatible with old and new versions of mod_autoindex.
I added CDateTime::MonthNumToMonthString in order to not touch the rest of the code.