Skip to content

Commit 96eac2a

Browse files
committed
Update event.py
Le fix pouvait causer problème lors d'un reboot. Mis une date future au lieu d'une date pas rapport dans le passé.
1 parent 8d72954 commit 96eac2a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pyhilo/event.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,8 @@ def _convert_phases(self, phases: dict[str, Any]) -> None:
108108
self.phases_list.append(phase)
109109
for phase in self.__annotations__:
110110
if phase not in self.phases_list:
111-
now_with_tz = datetime.now(timezone.utc).astimezone()
112111
# On t'aime Carl
113-
setattr(self, phase, now_with_tz)
112+
setattr(self, phase, datetime(2099, 12, 31, tzinfo=timezone.utc))
114113

115114
def _create_phases(
116115
self, hours: int, phase_name: str, parent_phase: str

0 commit comments

Comments
 (0)