From: Anthony Talarico Date: Tue, 10 Nov 2015 14:33:21 +0000 (-0500) Subject: changing min nights stay calculation X-Git-Tag: v1.0.0^2~322 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=c198e3f1bd90b9c62c47d3a0733efd664d9a6c1c;p=WP-Themes%2Fstaffords.git changing min nights stay calculation --- 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; }