From: Seamus Lee Date: Sat, 31 Oct 2015 21:34:16 +0000 (+0000) Subject: CRM-17303 Fix Radio Date test X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=abcd0dab9ab9c478b81e7820b4fb26a95762351d;p=civicrm-core.git CRM-17303 Fix Radio Date test Further test fix Further test fix Further test fix Further test fix --- diff --git a/tests/karma/unit/crmMailingRadioDateSpec.js b/tests/karma/unit/crmMailingRadioDateSpec.js index 16d6b2a08d..26553b0c95 100644 --- a/tests/karma/unit/crmMailingRadioDateSpec.js +++ b/tests/karma/unit/crmMailingRadioDateSpec.js @@ -88,12 +88,11 @@ describe('crmMailingRadioDate', function() { var now = new Date(); var month = '' + (now.getMonth() + 1); - var day = '' + (now.getDate() + 1); var year = (now.getFullYear() + 1); - var hours = '03'; - var minutes = '30'; if (month.length < 2) month = '0' + month; - if (day.length < 2) day = '0' + day; + var day = "01"; + var minutes = "30"; + var hours = "09"; var datenow = [year, month, day].join('-'); var time = [hours, minutes, "00"].join(':'); var currentDate = datenow + ' ' + time;