expect(element.find('.crm-form-time').timeEntry('getTime').getMinutes()).toBe(3);
var now = new Date();
- var month = '' + (now.getMonth() + 1);
- var day = '' + (now.getDate() + 1);
+ var month = '';
+ var day = '';
+ if (now.getMonth() == 12) {
+ month = '1';
+ } else {
+ month = month + (now.getMonth() + 1);
+ }
+ if (now.getDate() >= 28) {
+ day = '1';
+ } else {
+ day = day + (now.getDate() + 1);
+ }
var year = (now.getFullYear() + 1);
if (day.length < 2) day = '0' + day;
if (month.length < 2) month = '0' + month;