Skip to content

Commit

Permalink
Added timezone information in the vehicle simulator payload
Browse files Browse the repository at this point in the history
  • Loading branch information
n1kPLV committed Sep 22, 2023
1 parent 011195b commit 922a8c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vehicle-simulator/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ def send_payload(vehicle_name: str, latitude: float, longitude: float, heading:
"end_device_ids": {
"device_id": vehicle_name,
},
"received_at": datetime.utcnow().isoformat(),
# Include timezone information in the same format the LoRaWAN tracker use.
"received_at": datetime.utcnow().isoformat() + "Z",
"uplink_message": {
"f_port": 1,
"decoded_payload": {
Expand Down

0 comments on commit 922a8c8

Please sign in to comment.