aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-10-17 21:21:07 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-10-17 21:21:07 -0400
commit02ec92c6cb0cfb86fb9a0b65addbd8c0934869c7 (patch)
treeb3ba13fd9c1c9d5a2ba3592e92958c629313823f /IkiWiki
parentef4b9b54206bec2930d387b57ebbb5d7b2a5dce2 (diff)
downloadikiwiki-02ec92c6cb0cfb86fb9a0b65addbd8c0934869c7.tar
ikiwiki-02ec92c6cb0cfb86fb9a0b65addbd8c0934869c7.tar.gz
make relativedate work for the dates on the recentchanges page
Having a always current relative date on recentchanges is very, very nice.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/recentchanges.pm1
1 files changed, 1 insertions, 0 deletions
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 {