update
This commit is contained in:
parent
eb37e68cd4
commit
468bde3c7d
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ const time = {
|
||||||
const currentDate = date.getDate() < 10 ? '0' + date.getDate() : date.getDate();
|
const currentDate = date.getDate() < 10 ? '0' + date.getDate() : date.getDate();
|
||||||
const hh = date.getHours() < 10 ? '0' + date.getHours() : date.getHours();
|
const hh = date.getHours() < 10 ? '0' + date.getHours() : date.getHours();
|
||||||
const mm = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes();
|
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') {
|
if (type === 'month') {
|
||||||
return month + '-' + currentDate + ' ' + hh + ':' + mm;
|
return month + '-' + currentDate + ' ' + hh + ':' + mm;
|
||||||
|
|
Loading…
Add table
Reference in a new issue