BE/PLG: TZ timestamp work #1251

Signed-off-by: jokob-sk <jokob.sk@gmail.com>
This commit is contained in:
jokob-sk
2025-11-04 19:24:13 +11:00
parent 6dd7251c84
commit 59477e7b38
67 changed files with 164 additions and 133 deletions

View File

@@ -4,7 +4,7 @@ import json
import conf
from const import *
from logger import mylog, logResult
from helper import timeNowTZ, timeNow, checkNewVersion
from helper import timeNowDB, timeNow, checkNewVersion
# Register NetAlertX directories
INSTALL_PATH="/app"
@@ -59,7 +59,7 @@ class app_state_class:
previousState = ""
# Update self
self.lastUpdated = str(timeNowTZ().astimezone().isoformat())
self.lastUpdated = str(timeNowDB())
if os.path.exists(stateFile):
try: