Fix validtion when users time is before 9am
authorSeamus Lee <seamuslee001@gmail.com>
Tue, 20 Oct 2015 22:56:01 +0000 (22:56 +0000)
committerSeamus Lee <seamuslee001@gmail.com>
Thu, 22 Oct 2015 04:54:09 +0000 (04:54 +0000)
ang/crmMailing/RadioDate.js

index 153e9562b9307689c698d9d5c295e52f2d2a7e17..c747f2e275f2673000a3ace185a88aa296b94268 100644 (file)
@@ -58,6 +58,8 @@
               var submittedDate = $(this).val();
               if (month.length < 2) month = '0' + month;
               if (day.length < 2) day = '0' + day;
+              if (hours.length < 2) hours = '0' + hours;
+              if (minutes.length < 2) minutes = '0' + minutes;
               date = [year, month, day].join('-');
               time = [hours, minutes, "00"].join(':');
               currentDate = date + ' ' + time;