summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--IkiWiki/Plugin/recentchanges.pm1
-rw-r--r--templates/change.tmpl2
2 files changed, 2 insertions, 1 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 {
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 @@
<span class="desc"><br />Commit type:</span>
<span class="committype"><TMPL_VAR COMMITTYPE></span>
<span class="desc"><br />Date:</span>
-<span class="changedate"><TMPL_VAR COMMITDATE></span>
+<span class="changedate"><span class="date" title="<TMPL_VAR COMMITDATE_RAW>"><TMPL_VAR COMMITDATE></span></span>
</div>
<div class=changelog>
<TMPL_LOOP NAME="MESSAGE">