From c198e3f1bd90b9c62c47d3a0733efd664d9a6c1c Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Tue, 10 Nov 2015 09:33:21 -0500 Subject: [PATCH] changing min nights stay calculation --- js/app.js | 2 +- js/custom/pageSetup.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/app.js b/js/app.js index a531a6a..01fd385 100644 --- a/js/app.js +++ b/js/app.js @@ -82,7 +82,7 @@ $(document).ready(function () { currentDate = new Date(currentDate); currentDate = new Date(currentDate.getUTCFullYear(), currentDate.getUTCMonth(), currentDate.getUTCDate()); currentDate.setDate(currentDate.getDate()); - d = currentDate.getDate() + 2; + d = currentDate.getDate() + 1; if (d <= 9) { d = '0' + d; } diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index f4c83b3..407977b 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -73,7 +73,7 @@ $(document).ready(function () { currentDate = new Date(currentDate); currentDate = new Date(currentDate.getUTCFullYear(), currentDate.getUTCMonth(), currentDate.getUTCDate()); currentDate.setDate(currentDate.getDate()); - d = currentDate.getDate() + 2; + d = currentDate.getDate() + 1; if (d <= 9) { d = '0' + d; } -- 2.17.1