From 26d62b386ec0a2ee8f0c00cf48ccc21a8213063b Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 1 Jul 2014 08:52:48 +0100 Subject: edittemplate: use unambiguous RFC 3339 datestamps These take into account the timezone offset (and convert it to UTC+0000) rather than being in an unspecified timezone. --- IkiWiki/Plugin/edittemplate.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'IkiWiki') diff --git a/IkiWiki/Plugin/edittemplate.pm b/IkiWiki/Plugin/edittemplate.pm index 947c8f215..c2a8da29f 100644 --- a/IkiWiki/Plugin/edittemplate.pm +++ b/IkiWiki/Plugin/edittemplate.pm @@ -156,7 +156,7 @@ sub filltemplate ($$) { } my $time = time(); - $template->param(time => IkiWiki::formattime($time, "%Y-%m-%d %H:%M:%S")); + $template->param(time => IkiWiki::date_3339($time)); return $template->output; } -- cgit v1.2.3