Skip to content
Snippets Groups Projects

[hotfix] substract 1 year from now, not start of year

Merged Hugo NOUTS requested to merge dev into master
3 files
+ 4
10
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 2
8
@@ -18,14 +18,8 @@ const manualExecution =
process.env.COZY_JOB_MANUAL_EXECUTION === 'true' ? true : false
const startDate = manualExecution
? moment()
.startOf('year')
.subtract(1, 'year')
.format('MM/DD/YYYY')
: moment()
.startOf('year')
.subtract(3, 'year')
.format('MM/DD/YYYY')
? moment().subtract(1, 'year').format('YYYY-MM-DD')
: moment().subtract(3, 'year').format('YYYY-MM-DD')
const endDate = moment().format('MM/DD/YYYY')
// const timeRange = ['day', 'month', 'year']
Loading