From 798147ea99731408f0bdd16ffa2d252e876c4166 Mon Sep 17 00:00:00 2001 From: alexm Date: Thu, 5 May 2022 14:40:13 +0200 Subject: [PATCH] jenkins error --- modules/worker/back/methods/worker/createAbsence.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/worker/back/methods/worker/createAbsence.js b/modules/worker/back/methods/worker/createAbsence.js index 957bcc15f..82cb5038e 100644 --- a/modules/worker/back/methods/worker/createAbsence.js +++ b/modules/worker/back/methods/worker/createAbsence.js @@ -135,6 +135,7 @@ module.exports = Self => { function formatDate(date) { let day = date.getDate(); if (day < 10) day = `0${day}`; + let month = date.getMonth() + 1; if (month < 10) month = `0${month}`; let year = date.getFullYear();