From abcd0dab9ab9c478b81e7820b4fb26a95762351d Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Sat, 31 Oct 2015 21:34:16 +0000 Subject: [PATCH] CRM-17303 Fix Radio Date test Further test fix Further test fix Further test fix Further test fix --- tests/karma/unit/crmMailingRadioDateSpec.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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; -- 2.25.1