mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-09-27 00:05:15 -04:00
BE: FREEBOX last scan fix #1804
This commit is contained in:
1 parent
d72aea21f5
commit
38866a64db
2 files changed
+5
-4
No files matched your search
@@ -484,8 +484,9 @@
|
||||
},
|
||||
{
|
||||
"column": "watchedValue4",
|
||||
"mapped_to_column": "scanLastConnection",
|
||||
"css_classes": "col-sm-2",
|
||||
"show": false,
|
||||
"show": true,
|
||||
"type": "label",
|
||||
"default_value": "",
|
||||
"options": [],
|
||||
@@ -495,7 +496,7 @@
|
||||
"name": [
|
||||
{
|
||||
"language_code": "en_us",
|
||||
"string": "N/A"
|
||||
"string": "Last Connection"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -4,7 +4,7 @@ import os
|
||||
import sys
|
||||
from pytz import timezone
|
||||
import asyncio
|
||||
from datetime import datetime
|
||||
from datetime import datetime, timezone
|
||||
from pathlib import Path
|
||||
from typing import cast
|
||||
import socket
|
||||
@@ -170,7 +170,7 @@ def main():
|
||||
watched1=host.get("primary_name", "(unknown)"),
|
||||
watched2=host.get("vendor_name", "(unknown)"),
|
||||
watched3=map_device_type(host.get("host_type", "")),
|
||||
watched4=datetime.fromtimestamp(ip.get("last_time_reachable", 0)).strftime(DATETIME_PATTERN),
|
||||
watched4=datetime.fromtimestamp(ip.get("last_time_reachable", 0), tz=timezone.utc).strftime(DATETIME_PATTERN),
|
||||
extra="",
|
||||
foreignKey=mac,
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user