andre před 4 roky
rodič
revize
c25cd627a4
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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 = Date(now.getFullYear(), now.getMonth() + 1, 0) - Date(now.getFullYear(), now.getMonth(), now.getDate());
+            let days = new Date(now.getFullYear(), now.getMonth() + 1, 0) - new Date(now.getFullYear(), now.getMonth(), now.getDate());
             console.log(days);
             console.log(days);
             jQuery('#producttotalmessage').html('Monatlich');
             jQuery('#producttotalmessage').html('Monatlich');
             break;
             break;