From 3e1ea8337814b5730a0af9b3de7797e054abbf99 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sat, 7 May 2011 09:45:40 +0200 Subject: [PATCH] Fix the use of unknown dateformat filter dateformat in tests. Use strftime instead. There seems to be no dateformat filter in jinja documentation. --- hyde/tests/templates/jinja2/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyde/tests/templates/jinja2/index.html b/hyde/tests/templates/jinja2/index.html index b006d05..0379820 100644 --- a/hyde/tests/templates/jinja2/index.html +++ b/hyde/tests/templates/jinja2/index.html @@ -6,7 +6,7 @@

{{ article.title|e }}

written by {{ article.user.username|e }} on {{ article.pub_date|dateformat }}

+ }}">{{ article.user.username|e }} on {{ article.pub_date.strftime('%Y-%m-%d') }}

{{ article.body }}
{%- endfor %}