Skip to content

Commit

Permalink
next-business-day: always return start of day
Browse files Browse the repository at this point in the history
  • Loading branch information
travoul committed Nov 1, 2018
1 parent 7987798 commit fd06fcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ exports.nextBusinessDay = function(country, anchorDate, options) {
return exports.isBusinessDay(country, day, options)
.then(function(isBusinessDay) {
if (isBusinessDay) {
return day.toDate();
return day.startOf('day').toDate();
}

return iterate(day.add(1, 'd'));
Expand Down

0 comments on commit fd06fcd

Please sign in to comment.