From b2fd820a66cbdd9c39ed60da39b1bf04161881f1 Mon Sep 17 00:00:00 2001 From: Mike Shoup Date: Wed, 3 Oct 2018 08:25:52 -0600 Subject: [PATCH] Use static future date --- thermostat.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thermostat.go b/thermostat.go index ab7bba0..f5ab612 100644 --- a/thermostat.go +++ b/thermostat.go @@ -77,7 +77,7 @@ func ProcessSensor(sensor Sensor, state State) (State, error) { // When things reach the right temperature, set the duration to the future // TODO: Better handling of this. Changed should maintain when the state changed. // Probably need a new flag in the State struct. - future := time.Now().AddDate(10, 0, 0) + future := time.Date(2999, 1, 1, 0, 0, 0, 0, time.UTC) switch { case temp > sensor.HighTemp && temp < sensor.LowTemp: