From fcc70c2aaa4e428309350acaf6c7e15a8b75857e Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Tue, 24 Sep 2013 18:57:10 +0200 Subject: Fix time formatting --- webcheck/templates/macros.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webcheck/templates/macros.html b/webcheck/templates/macros.html index 88bed52..faaf4c8 100644 --- a/webcheck/templates/macros.html +++ b/webcheck/templates/macros.html @@ -47,7 +47,7 @@ {%- elif count > 1 -%} linked from {{ count }} pages{{ separator|safe }} {%- endif -%} - {%- if link.mtime %}last modified: {{ time.ctime(link.mtime) }}{{ separator|safe }}{% endif -%} + {%- if link.mtime %}last modified: {{ link.mtime.strftime('%F %T') }}{{ separator|safe }}{% endif -%} {%- if link.size %}size: {{ link.size|filesizeformat(binary=True) }}{{ separator|safe }}{% endif -%} {%- if link.mimetype %}mime-type: {{ link.mimetype }}{{ separator|safe }}{% endif -%} {%- if link.encoding %}encoding: {{ link.encoding }}{{ separator|safe }}{% endif -%} -- cgit v1.2.3