forked from DGNum/gestioCOF
Fix : plus de warnings chelous pendant les tests
This commit is contained in:
parent
2350109a33
commit
f9958e4da0
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue