fix timestamp
This commit is contained in:
@@ -519,7 +519,6 @@ func getLastMetrics(deveui string) OneMetric {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
res.Timestamp = t.In(location).Format("02.01.2006 15:04")
|
|
||||||
res.BatteryPercent = strconv.Itoa(vbat2percent(s[len(s)-1]))
|
res.BatteryPercent = strconv.Itoa(vbat2percent(s[len(s)-1]))
|
||||||
res.BatteryPercentHTML = template.HTML(vbat2html(s[len(s)-1]))
|
res.BatteryPercentHTML = template.HTML(vbat2html(s[len(s)-1]))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user