Commit 6cdd0a72 by Sxy

fix: time

parent 3ea6c33d
...@@ -272,9 +272,9 @@ class BizOptCtl extends CtlBase { ...@@ -272,9 +272,9 @@ class BizOptCtl extends CtlBase {
} }
timeFormat(date) { timeFormat(date) {
let localTime = moment.utc(date).toDate(); // let localTime = moment.utc(date).toDate();
localTime = moment(localTime).format("YYYY-MM-DD"); // localTime = moment(localTime).format("YYYY-MM-DD HH:mm:ss");
return localTime; return moment(date).format("YYYY-MM-DD HH:mm:ss");
} }
} }
module.exports = BizOptCtl; module.exports = BizOptCtl;
......
...@@ -1027,9 +1027,9 @@ class DeliverybillCtl extends CtlBase { ...@@ -1027,9 +1027,9 @@ class DeliverybillCtl extends CtlBase {
} }
timeFormat(date) { timeFormat(date) {
let localTime = moment.utc(date).toDate(); // let localTime = moment.utc(date).toDate();
localTime = moment(localTime).format("YYYY-MM-DD"); // localTime = moment(localTime).format("YYYY-MM-DD");
return localTime; return moment(date).format("YYYY-MM-DD HH:mm:ss");
} }
//元转分 - 解决精度问题 yuan:要转换的钱,单位元; digit:转换倍数 //元转分 - 解决精度问题 yuan:要转换的钱,单位元; digit:转换倍数
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment