more development

This commit is contained in:
2021-12-09 16:28:45 -06:00
parent 8d8f68957f
commit 4278e622ce
4 changed files with 91 additions and 10 deletions

View File

@@ -5,7 +5,12 @@ import (
"time"
)
func nextSunriseSunsetTime(t time.Time) (time.Time, time.Time, error) {
func nextSunriseSunsetTime(t time.Time) (sunrise, sunset time.Time, err error) {
var (
nextSR time.Time
nextSS time.Time
)
s := config.SunRiseSet
s.Date = t
@@ -15,7 +20,7 @@ func nextSunriseSunsetTime(t time.Time) (time.Time, time.Time, error) {
}
s.Date = t.Add(24 * time.Hour)
nextSR, nextSS, err := s.GetSunriseSunset()
nextSR, nextSS, err = s.GetSunriseSunset()
if err != nil {
return time.Time{}, time.Time{}, err
}