mirror of
https://github.com/ep1cman/unifi-protect-backup.git
synced 2025-12-05 23:53:30 +00:00
Add timezone info to debug log
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
"""Main module."""
|
||||
import asyncio
|
||||
from datetime import datetime, timezone
|
||||
import logging
|
||||
import os
|
||||
import shutil
|
||||
@@ -289,6 +290,10 @@ class UnifiProtectBackup:
|
||||
for camera in self._protect.bootstrap.cameras.values():
|
||||
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 = []
|
||||
|
||||
if not os.path.exists(self._sqlite_path):
|
||||
|
||||
Reference in New Issue
Block a user