fixed a date bug
gitea/salix/dev This commit looks good
Details
gitea/salix/dev This commit looks good
Details
This commit is contained in:
parent
e3e20455d8
commit
f6e625a1be
|
@ -58,8 +58,8 @@ describe('Client log path', () => {
|
|||
|
||||
if (month.toString().length < 2) month = '0' + month;
|
||||
if (day.toString().length < 2) day = `0${day}`;
|
||||
if (hours.toString().length < 2) month = '0' + hours;
|
||||
if (minutes.toString().length < 2) day = `0${minutes}`;
|
||||
if (hours.toString().length < 2) hours = '0' + hours;
|
||||
if (minutes.toString().length < 2) minutes = `0${minutes}`;
|
||||
|
||||
let today = [day, month, year].join('/');
|
||||
let time = [hours, minutes].join(':');
|
||||
|
|
Loading…
Reference in New Issue