coar 97/11/09 12:40:36
Modified: htdocs/manual new_features_1_3.html
src CHANGES
src/modules/standard mod_autoindex.c mod_include.c
Log:
Make mod_autoindex and mod_include default date formats Y2K-safe.
Also add the SuppressColumnSorting keyword to the new-features
document.
Reviewed by: Ben Laurie, Dean Gaudet
Revision Changes Path
1.30 +19 -0 apachen/htdocs/manual/new_features_1_3.html
Index: new_features_1_3.html
===================================================================
RCS file: /export/home/cvs/apachen/htdocs/manual/new_features_1_3.html,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- new_features_1_3.html 1997/10/24 09:44:17 1.29
+++ new_features_1_3.html 1997/11/09 20:40:28 1.30
@@ -104,6 +104,11 @@
clicking on a column title will now sort the listing in
order by the values in that column. Selecting the column
repeatedly will toggle between ascending and descending order.
+ This feature can be disabled with the <SAMP>SuppressColumnSorting</SAMP>
+ <A
+ HREF="mod/mod_autoindex.html#indexoptions"
+ >IndexOptions</A>
+ keyword.
</LI>
<LI><A
HREF="mod/mod_autoindex.html#indexoptions"
@@ -433,6 +438,20 @@
</ul>
+ <LI><STRONG>Year-2000 Improvements</STRONG>
+ <BR>
+ The default <SAMP>timefmt</SAMP> string used by
+ <A
+ HREF="mod/mod_include.html"
+ ><SAMP>mod_include</SAMP></A>
+ has been modified todisplay the year using four digits rather than the
+ two-digit format used previously. The
+ <A
+ HREF="mod/mod_autoindex.html"
+ ><SAMP>mod_autoindex</SAMP></A>
+ module has also been modified to display years using four digits in
+ FancyIndexed directory listings.
+ </LI>
</ul>
<!--#include virtual="footer.html" -->
1.501 +3 -0 apachen/src/CHANGES
Index: CHANGES
===================================================================
RCS file: /export/home/cvs/apachen/src/CHANGES,v
retrieving revision 1.500
retrieving revision 1.501
diff -u -r1.500 -r1.501
--- CHANGES 1997/11/09 05:49:24 1.500
+++ CHANGES 1997/11/09 20:40:30 1.501
@@ -1,5 +1,8 @@
Changes with Apache 1.3b3
+ *) Change mod_include and mod_autoindex to use Y2K-safe date formats
+ by default. [Ken Coar]
+
*) Add a "SuppressColumnSorting" option to the IndexOptions list,
which will keep the column heading from beling links for sorting
the display. [Ken Coar, suggested by Brian Tiemann <[EMAIL PROTECTED]>]
1.55 +3 -3 apachen/src/modules/standard/mod_autoindex.c
Index: mod_autoindex.c
===================================================================
RCS file: /export/home/cvs/apachen/src/modules/standard/mod_autoindex.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -r1.54 -r1.55
--- mod_autoindex.c 1997/11/09 05:49:21 1.54
+++ mod_autoindex.c 1997/11/09 20:40:33 1.55
@@ -707,7 +707,7 @@
register int x;
if (autoindex_opts & SUPPRESS_LAST_MOD)
- maxsize += 17;
+ maxsize += 19;
if (autoindex_opts & SUPPRESS_SIZE)
maxsize += 7;
@@ -800,7 +800,7 @@
if (!(autoindex_opts & SUPPRESS_LAST_MOD)) {
emit_link(r, "Last modified", K_LAST_MOD, keyid, direction,
static_columns);
- rputs(" ", r);
+ rputs(" ", r);
}
if (!(autoindex_opts & SUPPRESS_SIZE)) {
emit_link(r, "Size", K_SIZE, keyid, direction, static_columns);
@@ -881,7 +881,7 @@
if (ar[x]->lm != -1) {
char time_str[MAX_STRING_LEN];
struct tm *ts = localtime(&ar[x]->lm);
- strftime(time_str, MAX_STRING_LEN, "%d-%b-%y %H:%M ", ts);
+ strftime(time_str, MAX_STRING_LEN, "%d-%b-%Y %H:%M ", ts);
rputs(time_str, r);
}
else {
1.58 +1 -1 apachen/src/modules/standard/mod_include.c
Index: mod_include.c
===================================================================
RCS file: /export/home/cvs/apachen/src/modules/standard/mod_include.c,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -r1.57 -r1.58
--- mod_include.c 1997/10/22 20:30:22 1.57
+++ mod_include.c 1997/11/09 20:40:34 1.58
@@ -92,7 +92,7 @@
#define STARTING_SEQUENCE "<!--#"
#define ENDING_SEQUENCE "-->"
#define DEFAULT_ERROR_MSG "[an error occurred while processing this
directive]"
-#define DEFAULT_TIME_FORMAT "%A, %d-%b-%y %H:%M:%S %Z"
+#define DEFAULT_TIME_FORMAT "%A, %d-%b-%Y %H:%M:%S %Z"
#define SIZEFMT_BYTES 0
#define SIZEFMT_KMG 1