From 7ea3637d4789ecea1713f20647faedd0fa42e6f3 Mon Sep 17 00:00:00 2001 From: Kevin Wang <kevmo314@gmail.com> Date: Sun, 13 Oct 2013 05:15:02 -0500 Subject: [PATCH] use more standardized strftime formats --- templates/article_stub.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/article_stub.html b/templates/article_stub.html index 5e88ac5..518c57b 100644 --- a/templates/article_stub.html +++ b/templates/article_stub.html @@ -1,6 +1,6 @@ {%- if not articles_page or first_article_of_day %} - <h4 class="date">{{ article.date.strftime("%b %e, %G") }}</h4> + <h4 class="date">{{ article.date.strftime("%b %d, %Y") }}</h4> {%- endif %} <div class="post{% if article.pinned %} pinned{% endif %}"> @@ -15,9 +15,9 @@ <div class="clear"></div> <div class="info"> {% if article.pinned -%} - <a href="{{ SITEURL }}/{{ article.url }}">posted {{ article.date.strftime("%B %e, %l:%M %P") }}</a> + <a href="{{ SITEURL }}/{{ article.url }}">posted {{ article.date.strftime("%B %d, %I:%M %Y") }}</a> {%- else -%} - <a href="{{ SITEURL }}/{{ article.url }}">posted at {{ article.date.strftime("%l:%M %P") }}</a> + <a href="{{ SITEURL }}/{{ article.url }}">posted at {{ article.date.strftime("%I:%M %Y") }}</a> {%- if article.category.name != "Uncategorized" -%} · <a href="{{ SITEURL }}/{{ article.category.url }}" rel="tag">{{ article.category }}</a> {%- endif %} -- GitLab