Skip to content

Commit

Permalink
Update cal_business.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarang authored Mar 16, 2023
1 parent 1b31496 commit 86655d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion v2/cal_business.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 86655d7

Please sign in to comment.