diff options
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/edittemplate.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/edittemplate.pm b/IkiWiki/Plugin/edittemplate.pm index 571accf1f..c61f6336b 100644 --- a/IkiWiki/Plugin/edittemplate.pm +++ b/IkiWiki/Plugin/edittemplate.pm @@ -155,6 +155,10 @@ sub filltemplate ($$) { $template->param(uuid => $uuid); } + my $time = time(); + $template->param(time => IkiWiki::formattime($time, "%Y-%m-%d %H:%M:%S")); + $template->param(formatted_time => IkiWiki::formattime($time)); + return $template->output; } |