Handle serverTime change (#53490)

This commit is contained in:
Joakim Sørensen 2021-07-26 11:01:58 +02:00 committed by GitHub
parent fbe576e93a
commit 3a5347f69e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -324,7 +324,7 @@ class TraccarScanner:
"device_traccar_id": event["deviceId"], "device_traccar_id": event["deviceId"],
"device_name": device_name, "device_name": device_name,
"type": event["type"], "type": event["type"],
"serverTime": event["serverTime"], "serverTime": event.get("eventTime") or event.get("serverTime"),
"attributes": event["attributes"], "attributes": event["attributes"],
}, },
) )