From f6e625a1be3abe95c23e20746bf75529b391e47f Mon Sep 17 00:00:00 2001 From: Carlos Jimenez Ruiz Date: Mon, 4 Mar 2019 08:31:33 +0100 Subject: [PATCH] fixed a date bug --- e2e/paths/client-module/13_log.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/paths/client-module/13_log.spec.js b/e2e/paths/client-module/13_log.spec.js index 54303599f..aba23ab72 100644 --- a/e2e/paths/client-module/13_log.spec.js +++ b/e2e/paths/client-module/13_log.spec.js @@ -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(':');