diff --git a/metrics.go b/metrics.go index aa66d9d..f5b246d 100644 --- a/metrics.go +++ b/metrics.go @@ -430,9 +430,9 @@ func getLastMetrics(deveui string) OneMetric { s := strings.Split(scanner.Text(), ",") fmt.Printf("BlaBla: %v\n", s) if (len(s) >= 12) && !(strings.HasPrefix(s[3], "_")) { - t, err := time.Parse(time.RFC3339, s[5]) + t, err := time.Parse(time.RFC3339, s[3]) if err != nil { - fmt.Printf("error converting time: %s\n", s[5]) + fmt.Printf("error converting time: %s\n", s[3]) continue }