Fix : plus de warnings chelous pendant les tests

This commit is contained in:
Ludovic Stephan 2021-02-28 02:35:40 +01:00
parent 2350109a33
commit f9958e4da0

View file

@ -9,7 +9,7 @@ KFET_WAKES_UP_AT = time(5, 0) # La K-Fêt ouvre à 5h (UTC) du matin
def kfet_day(year, month, day, start_at=KFET_WAKES_UP_AT):
"""Étant donné une date, renvoie un objet `datetime`
correspondant au début du 'jour K-Fêt' correspondant."""
return datetime.combine(date(year, month, day), start_at)
return datetime.combine(date(year, month, day), start_at, tzinfo=timezone.utc)
def to_kfet_day(dt, start_at=KFET_WAKES_UP_AT):