more development
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user