Got
blosxom
to derive the date from the filename. Thanks Gus for the mktime() tip.
--- blosxom.cgi Sun Feb 16 11:16:00 2003
+++ blosxom.cgi Sun Feb 16 12:38:24 2003
@@ -59,4 +59,5 @@
use File::stat;
use Time::localtime;
+use POSIX qw/mktime/;
use CGI qw/:standard :netscape/;
@@ -105,4 +106,9 @@
and $static_entries and $indexes ($1 ? "$1/" : '') . "$2.$file_extension" = 1;
+ if ( $files $File::Find::name and $File::Find::name =~ m/.*\/(\d 4 )(\d 2 )(\d 2 )-(\d 2 )(\d 2 )/ )
+ $files $File::Find::name = POSIX::mktime( 0, $5, $4, $3, $2-1, $1-1900 );
+
+
+
,
$datadir
@@ -206,5 +212,5 @@
# Date fiddling for by- year,month,day archive views
- my ($dw,$mo,$mo_num,$da,$ti,$yr) = nice_date(stat("$path_file")->mtime);
+ my ($dw,$mo,$mo_num,$da,$ti,$yr) = nice_date( $files $path_file );
my ($hr,$min) = split /:/, $ti;
(The output above may be skewed in html -
[txt version]
)
.. now, onto non-indexed categories..