Explorar o código

Use locale_date as defined in the conf, instead of modifying date format with strftime

Talha Mansoor %!s(int64=11) %!d(string=hai) anos
pai
achega
72c175840d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      templates/categories.html

+ 1 - 1
templates/categories.html

@@ -34,7 +34,7 @@ All Categories - {{ super() }}
                     <div class="accordion-inner">
                         <ul class="list-articles-category">
                             {% for article in articles %} 
-                            <li><span>{{ article.date.strftime('%b %d, %Y') }}</span> <a href="{{ article.url }}">{{ article.title }}</a></li>
+                            <li><span>{{ article.locale_date }}</span> <a href="{{ article.url }}">{{ article.title }}</a></li>
                             {% endfor %}
                         </ul>
                     </div>