From 696a41803932e6138e7876a10d22e5eb82173386 Mon Sep 17 00:00:00 2001 From: build-token <build-token> Date: Fri, 7 Oct 2022 13:00:00 +0000 Subject: [PATCH] publish: fix: limit date generated from commit 889d9284df58b84105e797f0a4bddb5294c3c1d4 --- index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/index.js b/index.js index f3ed52e..bc9ce60 100644 --- a/index.js +++ b/index.js @@ -136,11 +136,9 @@ async function start(fields, cozyParameters) { sgeLogin, pointId ) - log('warn', `Date : ${userContractstartDate}`) + startDailyDate = moment(userContractstartDate, 'YYYY-MM-DD') startDailyDateString = startDailyDate.format('YYYY-MM-DD') - log('warn', `startDailyDate : ${startDailyDate}`) - log('warn', `startDailyDateString : ${startDailyDateString}`) const contractStartDate = moment().format('YYYY-MM-DD') const contractEndDate = moment() -- GitLab