florianv / business

:date: DateTime calculations in business hours
http://florianv.github.io/business
MIT License
361 stars 25 forks source link

Fix within method behavior #27

Closed boydcl closed 3 years ago

boydcl commented 6 years ago

This slightly modifies the behavior of the within method.

Currently when your closing time is 17:00 and the current time is exactly 17:00, the within method will return true, or 'is open', where you would expect it to be closed, because the business closes at 17.00 not 17.01.

This PR fixes that.

boydcl commented 6 years ago

Will fix the tests later.