|
@@ -46,10 +46,10 @@ def _schedule_shutdown(action: str) -> None:
|
|
|
|
|
|
assert action in ["poweroff", "reboot"], action
|
|
|
shutdown_datetime = datetime.datetime.now() + _SHUTDOWN_DELAY
|
|
|
+
|
|
|
+
|
|
|
_LOGGER.info(
|
|
|
- "scheduling %s for %s",
|
|
|
- action,
|
|
|
- shutdown_datetime.isoformat(sep=" ", timespec="seconds"),
|
|
|
+ "scheduling %s for %s", action, shutdown_datetime.strftime("%Y-%m-%d %H:%M:%S"),
|
|
|
)
|
|
|
shutdown_epoch_usec = int(shutdown_datetime.timestamp() * 10 ** 6)
|
|
|
try:
|