From 5a3f1d94ef77b218c138f1f3134047ec7b56484f Mon Sep 17 00:00:00 2001 From: Matthias Guillitte Date: Mon, 17 Aug 2026 22:20:12 +0200 Subject: [PATCH] Fix datetime function --- cloud/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud/app.py b/cloud/app.py index 9a640ce..bc9e57b 100644 --- a/cloud/app.py +++ b/cloud/app.py @@ -317,7 +317,7 @@ def telemetry(): return jsonify({"error": "Expected a JSON object/dictionary"}), 400 # Stamp UTC timestamp for Node-RED queries - data["received_at"] = datetime.now(datetime.timezone.utc).isoformat() + data["received_at"] = datetime.now(timezone.utc).isoformat() try: telemetry_collection.insert_one(data)