From e80094f1bf1ef8d96627962a002615fe657972a3 Mon Sep 17 00:00:00 2001 From: Patrick Mayr Date: Sat, 18 Jan 2025 00:14:20 +0100 Subject: [PATCH] fix month number of January --- fet2020/posts/managers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fet2020/posts/managers.py b/fet2020/posts/managers.py index 2df2bd97..5c649ae1 100644 --- a/fet2020/posts/managers.py +++ b/fet2020/posts/managers.py @@ -87,7 +87,7 @@ class ArticleManager(PublishedManager, models.Manager): __month = post_date.month __year = post_date.year - if __month != 0: + if __month != 1: __month -= 1 else: # If the current month is January, you get the date from December of previous year.