浏览代码

Fix problem with transaction spreadsheets not saving the correct date.

Lee Morgan 5 年之前
父节点
当前提交
fd8e4ce00c
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      controllers/transactionData.js

+ 2 - 2
controllers/transactionData.js

@@ -140,9 +140,9 @@ module.exports = {
                 });
 
                 if(array[1][0] === undefined){
-                    transaction.date = new Date(array[1][0]);
-                }else{
                     transaction.date = new Date();
+                }else{
+                    transaction.date = new Date(array[1][0]);
                 }
                 
                 let ingredients = [];