Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2013-09-24 18:57:10 +0200
committerArthur de Jong <arthur@arthurdejong.org>2013-09-28 15:24:09 +0200
commitfcc70c2aaa4e428309350acaf6c7e15a8b75857e (patch)
treecd36b0fe72d830aa2c4454aa24e2d8581c90f86f
parentd55b995e35eb18d9d89aed0d4977af46dd8e5b22 (diff)
Fix time formatting
-rw-r--r--webcheck/templates/macros.html2
1 files changed, 1 insertions, 1 deletions
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 -%}