aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/templates
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-03 10:38:40 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-03 10:38:40 +0200
commit28bcb305d5b05758dceeb7c7cd8ad65c7ec4b477 (patch)
tree79d47c8ce7648f23e1ab9f2d12ceb68704fa5a4a /pyaggr3g470r/templates
parentRemoved unused variable. (diff)
downloadnewspipe-28bcb305d5b05758dceeb7c7cd8ad65c7ec4b477.tar.gz
newspipe-28bcb305d5b05758dceeb7c7cd8ad65c7ec4b477.tar.bz2
newspipe-28bcb305d5b05758dceeb7c7cd8ad65c7ec4b477.zip
Take into account the client time zone.
Diffstat (limited to 'pyaggr3g470r/templates')
-rw-r--r--pyaggr3g470r/templates/home.html4
-rw-r--r--pyaggr3g470r/templates/management.html4
2 files changed, 4 insertions, 4 deletions
diff --git a/pyaggr3g470r/templates/home.html b/pyaggr3g470r/templates/home.html
index 43fdbb97..565614fe 100644
--- a/pyaggr3g470r/templates/home.html
+++ b/pyaggr3g470r/templates/home.html
@@ -24,7 +24,7 @@
{% if feed.articles[n].readed %}<h3>{% else %}<h1>{% endif %}
<a href="/article/{{ feed.articles[n].id }}">{{ feed.articles[n].title|safe }}</a>
{% if feed.articles[n].readed %}</h3>{% else %}</h1>{% endif %}
- <h6>{{ feed.articles[n].date.strftime('%A, %d %B %Y') }}</h6>
+ <h6>{{ feed.articles[n].date | datetime }}</h6>
</div>
{% endfor %}
</div>
@@ -36,7 +36,7 @@
{% if feed.articles[n].readed %}<h3>{% else %}<h1>{% endif %}
<a href="/article/{{ feed.articles[n].id }}">{{ feed.articles[n].title|safe }}</a>
{% if feed.articles[n].readed %}</h3>{% else %}</h1>{% endif %}
- <h6>{{ feed.articles[n].date.strftime('%A, %d %B %Y') }}</h6>
+ <h6>{{ feed.articles[n].date | datetime }}</h6>
</div>
{% endfor %}
</div>
diff --git a/pyaggr3g470r/templates/management.html b/pyaggr3g470r/templates/management.html
index b37653c4..f68978b2 100644
--- a/pyaggr3g470r/templates/management.html
+++ b/pyaggr3g470r/templates/management.html
@@ -14,8 +14,8 @@
<div class="row">
<div class="col-md-6">
<p>{{ _('Update your') }} <a href="/profile/">{{ _('profile') }}</a>.</p>
- <p>{{ _('Member since') }} {{ user.date_created.strftime('%A, %d %B %Y') }}.</p>
- <p>{{ _('Last seen:') }} {{ user.last_seen.strftime('%A, %d %B %Y at %H:%M:%S') }}.</p>
+ <p>{{ _('Member since') }} {{ user.date_created | datetime }}.</p>
+ <p>{{ _('Last seen:') }} {{ user.last_seen | datetime }}.</p>
</div>
<div class="col-md-6">
<img src="{{ user.email | gravatar }}" />
bgstack15