mirror of
https://github.com/ae-utbm/sith.git
synced 2025-02-27 01:47:14 +00:00
fix news dates timestamp in populate.py
This commit is contained in:
parent
86c2ea7fd9
commit
0e88260c31
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user