fixed a date bug
gitea/salix/dev This commit looks good Details

This commit is contained in:
Carlos Jimenez Ruiz 2019-03-04 08:31:33 +01:00
parent e3e20455d8
commit f6e625a1be
1 changed files with 2 additions and 2 deletions

View File

@ -58,8 +58,8 @@ describe('Client log path', () => {
if (month.toString().length < 2) month = '0' + month; if (month.toString().length < 2) month = '0' + month;
if (day.toString().length < 2) day = `0${day}`; if (day.toString().length < 2) day = `0${day}`;
if (hours.toString().length < 2) month = '0' + hours; if (hours.toString().length < 2) hours = '0' + hours;
if (minutes.toString().length < 2) day = `0${minutes}`; if (minutes.toString().length < 2) minutes = `0${minutes}`;
let today = [day, month, year].join('/'); let today = [day, month, year].join('/');
let time = [hours, minutes].join(':'); let time = [hours, minutes].join(':');