Skip to content

Commit 67c8a3f

Browse files
committed
调整优化 hinnn.dateFormat 支持时间戳
1 parent 000c8d7 commit 67c8a3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hiprint/hiprint.bundle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ var hiprint = function (t) {
316316
return this.orderBy(o, e).concat([i], this.orderBy(r, e));
317317
}, hinnn.dateFormat = function (t, e) {
318318
if (t) try {
319-
var o = "string" == typeof t ? new Date(t) : t;
319+
var o = new Date(`${t}`);
320320
var n = {
321321
"y+": o.getFullYear(),
322322
"M+": o.getMonth() + 1,

0 commit comments

Comments
 (0)