mirror of
https://github.com/ep1cman/unifi-protect-backup.git
synced 2025-12-23 11:43:52 +00:00
Add timezone info to debug log
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
"""Main module."""
|
"""Main module."""
|
||||||
import asyncio
|
import asyncio
|
||||||
|
from datetime import datetime, timezone
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
@@ -289,6 +290,10 @@ class UnifiProtectBackup:
|
|||||||
for camera in self._protect.bootstrap.cameras.values():
|
for camera in self._protect.bootstrap.cameras.values():
|
||||||
logger.info(f" - {camera.id}: {camera.name}")
|
logger.info(f" - {camera.id}: {camera.name}")
|
||||||
|
|
||||||
|
# Print timezone info for debugging
|
||||||
|
logger.debug(f'NVR TZ: {self._protect.bootstrap.nvr.timezone}')
|
||||||
|
logger.debug(f'Local TZ: {datetime.now(timezone.utc).astimezone().tzinfo}')
|
||||||
|
|
||||||
tasks = []
|
tasks = []
|
||||||
|
|
||||||
if not os.path.exists(self._sqlite_path):
|
if not os.path.exists(self._sqlite_path):
|
||||||
|
|||||||
Reference in New Issue
Block a user