From 740de5f507ed6c99ba17985125fa68fe2e67141c Mon Sep 17 00:00:00 2001 From: tubbdoose Date: Thu, 14 Sep 2023 20:55:29 +0000 Subject: [PATCH] Displayed full year instead of last two digits --- article/templatetags/articletags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/article/templatetags/articletags.py b/article/templatetags/articletags.py index 46defe00a..bdfd9d7fa 100644 --- a/article/templatetags/articletags.py +++ b/article/templatetags/articletags.py @@ -41,7 +41,7 @@ def display_pubdate(value): delta = today - pubdate if delta.total_seconds() > datetime.timedelta(days=365).total_seconds(): - return pubdate.strftime("%B xx%d %y").replace("xx0","").replace("xx","") + return pubdate.strftime("%B xx%d, %Y").replace("xx0","").replace("xx","") elif delta.total_seconds() > datetime.timedelta(days=1).total_seconds(): return pubdate.strftime("%B xx%d").replace("xx0","").replace("xx","") elif delta.total_seconds() > datetime.timedelta(hours=5).total_seconds():