Slight update to change fudge duration on lights to 2h
authorjweigele <jweigele@local>
Mon, 21 Aug 2023 01:04:55 +0000 (18:04 -0700)
committerjweigele <jweigele@local>
Mon, 21 Aug 2023 01:04:55 +0000 (18:04 -0700)
lights/main.go

index 250660a769b5908bea5dffdd656a064c7ceb3f86..1434162d53d0f8a4388ae060dfb458d664c0b2b2 100644 (file)
@@ -303,7 +303,7 @@ func sunIsUp(localTime time.Time) bool {
                year, month, day,
        )
        oneDay, _ := time.ParseDuration("24h")
-       fudgeDuration, _ := time.ParseDuration("1h")
+       fudgeDuration, _ := time.ParseDuration("2h")
        year, month, day = localTime.Add(-oneDay).Date()
        risePrevious, setPrevious := sunrise.SunriseSunset(
                sunriseLat, sunriseLon,