BE/PLG: TZ timestamp work #1251
Some checks failed
docker / docker_dev (push) Has been cancelled

Signed-off-by: jokob-sk <jokob.sk@gmail.com>
This commit is contained in:
jokob-sk
2025-11-04 08:10:50 +11:00
parent db18ca76b4
commit c52e44f90c
4 changed files with 41 additions and 17 deletions

View File

@@ -27,10 +27,12 @@ def get_device_data(mac):
# Open temporary connection for this request
conn = get_temp_db_connection()
cur = conn.cursor()
now = timeNowTZ().astimezone().isoformat()
# Special case for new device
if mac.lower() == "new":
now = timeNowTZ().astimezone().isoformat()
device_data = {
"devMac": "",
"devName": "",