Changes about locales and dates.

Add a way to specify the locale in the settings, and the date formating as well.
Fixes #61.
This commit is contained in:
Alexis Metaireau 2011-02-01 21:44:50 +00:00
commit d13e6f14fb
16 changed files with 39 additions and 13 deletions

View file

@ -5,7 +5,7 @@
<dl>
{% for article in dates %}
<dt>{{ article.date.strftime('%a %d %B %Y') }}</dt>
<dt>{{ article.locale_date }}</dt>
<dd><a href='{{ article.url }}'>{{ article.title }}</a></dd>
{% endfor %}
</dl>

View file

@ -1,6 +1,6 @@
<footer class="post-info">
<abbr class="published" title="{{ article.date.isoformat() }}">
{{ article.date.strftime('%a %d %B %Y') }}
{{ article.locale_date }}
</abbr>
{% if article.author %}