andre пре 4 година
родитељ
комит
581fd0c4a0
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      js/scripts.js

+ 1 - 1
js/scripts.js

@@ -3820,7 +3820,7 @@ function updateProductTotalMessage(billingcycle) {
     switch(billingcycle) {
     switch(billingcycle) {
         case 'monthly':
         case 'monthly':
             console.log(billingcycle);
             console.log(billingcycle);
-            let days = new Date(now.getFullYear(), now.getMonth() + 1, 0) - new Date(now.getFullYear(), now.getMonth(), now.getDate());
+            let days = daysIntoYear(new Date(now.getFullYear(), now.getMonth() + 1, 0)) - daysIntoYear(new Date(now.getFullYear(), now.getMonth(), now.getDate()));
             console.log(days);
             console.log(days);
             jQuery('#producttotalmessage').html('Monatlich');
             jQuery('#producttotalmessage').html('Monatlich');
             break;
             break;