andre 4 lat temu
rodzic
commit
f03895d8a6
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      js/scripts.js

+ 1 - 1
js/scripts.js

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