From 0e88260c31529a560429ff838672b15d35d21287 Mon Sep 17 00:00:00 2001 From: imperosol Date: Wed, 19 Feb 2025 16:51:55 +0100 Subject: [PATCH] fix news dates timestamp in populate.py --- core/management/commands/populate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/management/commands/populate.py b/core/management/commands/populate.py index 53638699..82dd2516 100644 --- a/core/management/commands/populate.py +++ b/core/management/commands/populate.py @@ -169,7 +169,7 @@ class Command(BaseCommand): Weekmail().save() # Here we add a lot of test datas, that are not necessary for the Sith, but that provide a basic development environment - self.now = timezone.now().replace(hour=12) + self.now = timezone.now().replace(hour=12, second=0) skia = User.objects.create_user( username="skia", @@ -681,7 +681,7 @@ Welcome to the wiki page! friday = self.now while friday.weekday() != 4: friday += timedelta(hours=6) - friday.replace(hour=20, minute=0, second=0) + friday.replace(hour=20, minute=0) # Event news_dates = [] n = News.objects.create(