From 88c3b97c343876de20f17f9a5e76333d10fae98f Mon Sep 17 00:00:00 2001
From: unknown <unknown@example.com>
Date: Thu, 11 Mar 2021 17:23:54 +0100
Subject: [PATCH] fixed date format

---
 manifest.konnector | 2 +-
 package.json       | 2 +-
 src/index.js       | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/manifest.konnector b/manifest.konnector
index 8343331..3d5322a 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 edab89b..d3a15e9 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 e96bb9f..67b7876 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']
-- 
GitLab