Skip to content

Commit 2c15c7f

Browse files
author
wangyaqi
committed
fix: 事件格式化的小错误
1 parent f59241d commit 2c15c7f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎common/util.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ var dateUtils = {
5757
var _format = function (number) {
5858
return (number < 10 ? ('0' + number) : number);
5959
};
60-
return date.getFullYear() + '/' + _format(date.getMonth() + 1) + '/' + _format(date.getDay()) + '-' +
60+
return date.getFullYear() + '/' + _format(date.getMonth() + 1) + '/' + _format(date.getDate()) + '-' +
6161
_format(date.getHours()) + ':' + _format(date.getMinutes());
6262
},
6363
parse: function (str) { //将"yyyy-mm-dd HH:MM:ss"格式的字符串,转化为一个Date对象

0 commit comments

Comments
 (0)