From 08ebefcb6e865507eb1bf919de2ece3ef22c1991 Mon Sep 17 00:00:00 2001 From: Peter Hasse Date: Wed, 24 Nov 2021 17:26:40 +0100 Subject: [PATCH] revert from utc to local time --- dish_grpc_influx2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dish_grpc_influx2.py b/dish_grpc_influx2.py index a9f09c4..9f8d1df 100644 --- a/dish_grpc_influx2.py +++ b/dish_grpc_influx2.py @@ -249,9 +249,9 @@ def loop_body(opts, gstate): # save off counter value for script restart points[-1]["fields"]["counter"] = counter + count - #now = time.time() + now = time.time() # work with UTC here - now = time.mktime(datetime.utcnow().timetuple()) + # now = time.mktime(datetime.utcnow().timetuple()) rc = dish_common.get_data(opts, gstate, cb_add_item, cb_add_sequence, add_bulk=cb_add_bulk) if rc: return rc