add 1h to influx time
This commit is contained in:
parent
e98d59bf8c
commit
7fdaac3240
8
unms.go
8
unms.go
@ -172,12 +172,12 @@ func processUNMSAPIRouter() []node {
|
|||||||
log.Fatalln("Error: ", err)
|
log.Fatalln("Error: ", err)
|
||||||
}
|
}
|
||||||
tm := time.Unix(int64(timeunix), 0)
|
tm := time.Unix(int64(timeunix), 0)
|
||||||
fmt.Println(tm)
|
time_local := tm.Add(1 * time.Hour)
|
||||||
point, err := client.NewPoint(
|
point, err := client.NewPoint(
|
||||||
"node",
|
"node",
|
||||||
tags,
|
tags,
|
||||||
fields,
|
fields,
|
||||||
tm,
|
time_local,
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalln("Error: ", err)
|
log.Fatalln("Error: ", err)
|
||||||
@ -220,12 +220,12 @@ func processUNMSAPIRouter() []node {
|
|||||||
log.Fatalln("Error: ", err)
|
log.Fatalln("Error: ", err)
|
||||||
}
|
}
|
||||||
tm := time.Unix(int64(timeunix), 0)
|
tm := time.Unix(int64(timeunix), 0)
|
||||||
fmt.Println(tm)
|
time_local := tm.Add(1 * time.Hour)
|
||||||
point, err := client.NewPoint(
|
point, err := client.NewPoint(
|
||||||
"node",
|
"node",
|
||||||
tags,
|
tags,
|
||||||
fields,
|
fields,
|
||||||
tm,
|
time_local,
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalln("Error: ", err)
|
log.Fatalln("Error: ", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user