diff --git a/index.js b/index.js index f3ed52ea2260ec3ae3cb7ff794e845651c4396a8..bc9ce6023d7402c176c4c39de479f048f4dcc383 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()