From: Joey Hess Date: Sat, 18 Oct 2008 01:21:07 +0000 (-0400) Subject: make relativedate work for the dates on the recentchanges page X-Git-Tag: 2.68~191 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/02ec92c6cb0cfb86fb9a0b65addbd8c0934869c7?ds=inline make relativedate work for the dates on the recentchanges page Having a always current relative date on recentchanges is very, very nice. --- diff --git a/IkiWiki/Plugin/recentchanges.pm b/IkiWiki/Plugin/recentchanges.pm index eb23b184b..d25c7abff 100644 --- a/IkiWiki/Plugin/recentchanges.pm +++ b/IkiWiki/Plugin/recentchanges.pm @@ -173,6 +173,7 @@ sub store ($$$) { #{{{ $template->param( %$change, commitdate => displaytime($change->{when}, "%X %x"), + commitdate_raw => scalar localtime($change->{when}), wikiname => $config{wikiname}, ); IkiWiki::run_hooks(pagetemplate => sub { diff --git a/templates/change.tmpl b/templates/change.tmpl index 4a99cf5ff..3a1086cf0 100644 --- a/templates/change.tmpl +++ b/templates/change.tmpl @@ -24,7 +24,7 @@
Commit type:

Date:
- +