Changing required depart dates
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 10 Nov 2015 15:38:13 +0000 (10:38 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 10 Nov 2015 15:38:13 +0000 (10:38 -0500)
js/app.js
js/custom/pageSetup.js

index aad10ee..c22ceb9 100644 (file)
--- 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;
         }
index a51956a..8a5c35d 100644 (file)
@@ -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;
         }