diff --git a/v2/cal_business.go b/v2/cal_business.go index 00772c3..9b0e770 100644 --- a/v2/cal_business.go +++ b/v2/cal_business.go @@ -120,7 +120,8 @@ func (c *BusinessCalendar) IsWorkTime(date time.Time) bool { } h, m, s := date.Clock() - return (h == startHour && m >= startMinute && s >= startSecond) || + return (h == startHour && m == startMinute && s >= startSecond) || + (h == startHour && m > startMinute) || (h > startHour && h < endHour) || (h == endHour && m < endMinute) || (h == endHour && m == endMinute && s <= endSecond)