fix timestamp
This commit is contained in:
parent
c678fbe5cd
commit
8e4bc7a02b
|
|
@ -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]))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue