From 7fdaac3240dd70fbb9e31b5737d321251d145877 Mon Sep 17 00:00:00 2001 From: Stefan Date: Mon, 20 Mar 2023 15:53:42 +0100 Subject: [PATCH] add 1h to influx time --- unms.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/unms.go b/unms.go index 57d9ac5..0c479eb 100644 --- a/unms.go +++ b/unms.go @@ -172,12 +172,12 @@ func processUNMSAPIRouter() []node { log.Fatalln("Error: ", err) } tm := time.Unix(int64(timeunix), 0) - fmt.Println(tm) + time_local := tm.Add(1 * time.Hour) point, err := client.NewPoint( "node", tags, fields, - tm, + time_local, ) if err != nil { log.Fatalln("Error: ", err) @@ -220,12 +220,12 @@ func processUNMSAPIRouter() []node { log.Fatalln("Error: ", err) } tm := time.Unix(int64(timeunix), 0) - fmt.Println(tm) + time_local := tm.Add(1 * time.Hour) point, err := client.NewPoint( "node", tags, fields, - tm, + time_local, ) if err != nil { log.Fatalln("Error: ", err)