This commit is contained in:
梁灏 2018-05-18 13:54:32 +08:00
parent eb37e68cd4
commit 468bde3c7d

View file

@ -55,7 +55,7 @@ const time = {
const currentDate = date.getDate() < 10 ? '0' + date.getDate() : date.getDate();
const hh = date.getHours() < 10 ? '0' + date.getHours() : date.getHours();
const mm = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes();
const ss = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds();
// const ss = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds();
if (type === 'month') {
return month + '-' + currentDate + ' ' + hh + ':' + mm;