]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/edittemplate.pm
Provide the current time to edittemplate.
[ikiwiki.git] / IkiWiki / Plugin / edittemplate.pm
index 571accf1f5c442eb1d0bb1096a79eeb187a6a51d..c61f6336be59abb88243a4ae0059fd872a46109f 100644 (file)
@@ -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;
 }