fix month number of January

This commit is contained in:
2025-01-18 00:14:20 +01:00
parent 2138f6da24
commit e80094f1bf

View File

@@ -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.