andre 4 年之前
父节点
当前提交
c25cd627a4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      js/scripts.js

+ 1 - 1
js/scripts.js

@@ -3820,7 +3820,7 @@ function updateProductTotalMessage(billingcycle) {
     switch(billingcycle) {
         case 'monthly':
             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);
             jQuery('#producttotalmessage').html('Monatlich');
             break;