diff --git a/manifest.konnector b/manifest.konnector index 8343331ea7f2f0a9af82fb871c32bfa421d4cdb1..3d5322a950ab5bd19b5a79e093b1442ce45a9999 100644 --- a/manifest.konnector +++ b/manifest.konnector @@ -1,5 +1,5 @@ { - "version": "0.2.1", + "version": "0.2.2", "name": "EGL", "type": "konnector", "language": "node", diff --git a/package.json b/package.json index edab89b18d12bf9f3dce4f78351d60830cc456dc..d3a15e9bb80c03b1ad9e4901b9437d7b0d815e3f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "egl", - "version": "0.2.1", + "version": "0.2.2", "description": "", "repository": { "type": "git", diff --git a/src/index.js b/src/index.js index e96bb9f253a45e574d131358f1b1a2e86ff6378d..67b78765671db4354b1cf3e0ccfa53c9068785a1 100644 --- a/src/index.js +++ b/src/index.js @@ -18,8 +18,8 @@ const manualExecution = process.env.COZY_JOB_MANUAL_EXECUTION === 'true' ? true : false const startDate = manualExecution - ? moment().subtract(1, 'year').format('YYYY-MM-DD') - : moment().subtract(3, 'year').format('YYYY-MM-DD') + ? moment().subtract(1, 'year').format('MM/DD/YYYY') + : moment().subtract(3, 'year').format('MM/DD/YYYY') const endDate = moment().format('MM/DD/YYYY') // const timeRange = ['day', 'month', 'year']