fix news dates timestamp in populate.py

This commit is contained in:
imperosol 2025-02-19 16:51:55 +01:00
parent 86c2ea7fd9
commit 0e88260c31

View File

@ -169,7 +169,7 @@ class Command(BaseCommand):
Weekmail().save() Weekmail().save()
# Here we add a lot of test datas, that are not necessary for the Sith, but that provide a basic development environment # 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( skia = User.objects.create_user(
username="skia", username="skia",
@ -681,7 +681,7 @@ Welcome to the wiki page!
friday = self.now friday = self.now
while friday.weekday() != 4: while friday.weekday() != 4:
friday += timedelta(hours=6) friday += timedelta(hours=6)
friday.replace(hour=20, minute=0, second=0) friday.replace(hour=20, minute=0)
# Event # Event
news_dates = [] news_dates = []
n = News.objects.create( n = News.objects.create(