BE/PLG: TZ timestamp work #1251

Signed-off-by: jokob-sk <jokob.sk@gmail.com>
This commit is contained in:
jokob-sk
2025-11-03 10:19:39 +11:00
parent 4c92a941a8
commit 288427c939
9 changed files with 33 additions and 44 deletions

View File

@@ -1,4 +1,3 @@
from time import strftime
import pytz
from pytz import timezone, all_timezones, UnknownTimeZoneError
import sys
@@ -205,7 +204,7 @@ class Plugin_Object:
self.pluginPref = ""
self.primaryId = primaryId
self.secondaryId = secondaryId
self.created = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
self.created = datetime.now().astimezone().isoformat()
self.changed = ""
self.watched1 = watched1
self.watched2 = watched2