changeset 2808:5b6de0bde6b6

Calculate the longterm waterlevels over UTC times, too.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 26 Mar 2019 07:47:16 +0100
parents 1fa57ad05e1e
children 216bc6394911
files pkg/controllers/gauges.go
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pkg/controllers/gauges.go	Tue Mar 26 07:45:27 2019 +0100
+++ b/pkg/controllers/gauges.go	Tue Mar 26 07:47:16 2019 +0100
@@ -281,6 +281,7 @@
 				rw, fmt.Sprintf("error: %v", err),
 				http.StatusInternalServerError)
 		}
+		date = date.UTC()
 		key := dayKey{
 			month: byte(date.Month()),
 			day:   byte(date.Day()),