Skip to content

Commit 3a81dd3

Browse files
author
comsince
committed
修改时间年份为2位显示
1 parent 471abd2 commit 3a81dd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/websocket/utils/timeUtils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ export default class TimeUtils {
9191
}
9292
// 否则直接显示完整日期时间
9393
else
94-
ret = this._formatDate(srcDate, "yyyy/M/d")+timeExtraStr;
94+
ret = this._formatDate(srcDate, "yy/M/d")+timeExtraStr;
9595
}
9696
}
9797
}
9898
// 往年
9999
else{
100-
ret = this._formatDate(srcDate, "yyyy/M/d")+timeExtraStr;
100+
ret = this._formatDate(srcDate, "yy/M/d")+timeExtraStr;
101101
}
102102

103103
return ret;

0 commit comments

Comments
 (0)