diff --git a/core.go b/core.go index 5733b7d..41d7145 100644 --- a/core.go +++ b/core.go @@ -81,7 +81,7 @@ func isInDateSlice(t time.Time, ta TimeArrow) bool { continue } - if t.After(startTime) && t.Before(endTime) { + if (t.After(startTime) || t.Equal(startTime)) && t.Before(endTime) { return true } } @@ -146,7 +146,7 @@ func isInTimeOfDay(t time.Time, ta TimeArrow) bool { continue } - if t.After(startTime) && t.Before(endTime) { + if (t.After(startTime) || t.Equal(startTime)) && t.Before(endTime) { return true } }