andre 4 лет назад
Родитель
Сommit
52c178283e
1 измененных файлов с 1 добавлено и 1 удалено
  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() + 1, 1, 0)) - daysIntoYear(new Date(now.getFullYear(), now.getMonth(), now.getDate()));
+            daysY = daysIntoYear(new Date(2023, 1, 1)) - daysIntoYear(new Date(now.getFullYear(), now.getMonth(), now.getDate()));
             console.log(daysY);
             jQuery('#producttotalmessage').html('Jährlich');
             break;