projects
/
rabbit_go
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fbf0ac
)
Slight update to change fudge duration on lights to 2h
author
jweigele
<jweigele@local>
Mon, 21 Aug 2023 01:04:55 +0000
(18:04 -0700)
committer
jweigele
<jweigele@local>
Mon, 21 Aug 2023 01:04:55 +0000
(18:04 -0700)
lights/main.go
patch
|
blob
|
history
diff --git
a/lights/main.go
b/lights/main.go
index 250660a769b5908bea5dffdd656a064c7ceb3f86..1434162d53d0f8a4388ae060dfb458d664c0b2b2 100644
(file)
--- a/
lights/main.go
+++ b/
lights/main.go
@@
-303,7
+303,7
@@
func sunIsUp(localTime time.Time) bool {
year, month, day,
)
oneDay, _ := time.ParseDuration("24h")
- fudgeDuration, _ := time.ParseDuration("
1
h")
+ fudgeDuration, _ := time.ParseDuration("
2
h")
year, month, day = localTime.Add(-oneDay).Date()
risePrevious, setPrevious := sunrise.SunriseSunset(
sunriseLat, sunriseLon,