Skip to content

Commit aae6f1f

Browse files
committed
chore: always use utc for now
1 parent f096dc0 commit aae6f1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roborock/mqtt/health_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async def on_timeout(self) -> None:
4444
"""
4545
self._consecutive_timeouts += 1
4646
if self._consecutive_timeouts >= TIMEOUT_THRESHOLD:
47-
now = datetime.datetime.now()
47+
now = datetime.datetime.now(datetime.UTC)
4848
if self._last_restart is None or now - self._last_restart >= RESTART_COOLDOWN:
4949
await self._restart()
5050
self._last_restart = now

0 commit comments

Comments
 (0)