fix month number of January
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user