chore: round evopt-batteries forecast timestamps to seconds (#31763)
This commit is contained in:
parent
792354959c
commit
1f411e3dfd
1 changed files with 1 additions and 1 deletions
|
|
@ -672,7 +672,7 @@ func matchSoc(ts []float32, fun func(float32) bool) time.Time {
|
|||
for i, soc := range ts {
|
||||
if fun(soc) {
|
||||
// TODO first slot
|
||||
return time.Now().Add(time.Duration(i+1) * tariff.SlotDuration)
|
||||
return time.Now().Add(time.Duration(i+1) * tariff.SlotDuration).Round(time.Second)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue