From f7afad15faaacef5e7d71c212963635c69fc4d0a Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Tue, 10 Nov 2015 10:38:13 -0500 Subject: [PATCH] Changing required depart dates --- js/app.js | 6 +++++- js/custom/pageSetup.js | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/js/app.js b/js/app.js index aad10ee..c22ceb9 100644 --- a/js/app.js +++ b/js/app.js @@ -86,7 +86,11 @@ $(document).ready(function () { currentDate = new Date(currentDate); currentDate = new Date(currentDate.getUTCFullYear(), currentDate.getUTCMonth(), currentDate.getUTCDate()); currentDate.setDate(currentDate.getDate()); - d = currentDate.getDate() + 1; + dd = currentDate.getDate() + 1; + if (d <= 9) { + d = '0' + d; + } + d = currentDate.getDate(); if (d <= 9) { d = '0' + d; } diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index a51956a..8a5c35d 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -77,7 +77,11 @@ $(document).ready(function () { currentDate = new Date(currentDate); currentDate = new Date(currentDate.getUTCFullYear(), currentDate.getUTCMonth(), currentDate.getUTCDate()); currentDate.setDate(currentDate.getDate()); - d = currentDate.getDate() + 1; + dd = currentDate.getDate() + 1; + if (d <= 9) { + d = '0' + d; + } + d = currentDate.getDate(); if (d <= 9) { d = '0' + d; } -- 2.17.1