From fd06fcd08540dad572ab048ee491a969a278e643 Mon Sep 17 00:00:00 2001 From: Marcello Costa Date: Thu, 1 Nov 2018 17:50:32 -0300 Subject: [PATCH] next-business-day: always return start of day --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index fefd344..bea7d44 100644 --- a/lib/index.js +++ b/lib/index.js @@ -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'));