andre 4 سال پیش
والد
کامیت
4df5028756
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      js/scripts.js

+ 1 - 1
js/scripts.js

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