From 1f411e3dfdff60191301d4b76a7517cc071ba2ab Mon Sep 17 00:00:00 2001 From: andig Date: Mon, 13 Jul 2026 17:47:57 +0200 Subject: [PATCH] chore: round evopt-batteries forecast timestamps to seconds (#31763) --- core/site_optimizer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/site_optimizer.go b/core/site_optimizer.go index 0a4a2842f..ec32d2729 100644 --- a/core/site_optimizer.go +++ b/core/site_optimizer.go @@ -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) } }