andre před 4 roky
rodič
revize
b9cde01eca
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

@@ -3834,7 +3834,7 @@ function updateProductTotalMessage(billingcycle) {
             break;
         case 'annually':
             console.log(billingcycle);
-            daysY = daysIntoYear(new Date(now.getFullYear(), 12, 31)) - daysIntoYear(new Date(now.getFullYear(), now.getMonth(), now.getDate()));
+            daysY = daysIntoYear(new Date(now.getFullYear() + 1, 1, 0)) - daysIntoYear(new Date(now.getFullYear(), now.getMonth(), now.getDate()));
             console.log(daysY);
             jQuery('#producttotalmessage').html('Jährlich');
             break;