From 6b591a830d4d6859c919b58061dd93767701a604 Mon Sep 17 00:00:00 2001 From: Bruno Raimbault Date: Fri, 6 Dec 2024 11:29:15 +0100 Subject: [PATCH] fix: update relativePeriods offsets --- src/components/PeriodDimension/utils/relativePeriods.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/PeriodDimension/utils/relativePeriods.js b/src/components/PeriodDimension/utils/relativePeriods.js index 37814bb37..cbccde9cc 100644 --- a/src/components/PeriodDimension/utils/relativePeriods.js +++ b/src/components/PeriodDimension/utils/relativePeriods.js @@ -73,7 +73,7 @@ const getWeeksPeriodType = () => [ { id: WEEKS_THIS_YEAR, name: i18n.t('Weeks this year'), - offset: 0, + offset: 51, duration: 52, }, ] @@ -118,7 +118,7 @@ const getMonthsPeriodType = () => [ { id: 'MONTHS_THIS_YEAR', name: i18n.t('Months this year'), - offset: 0, + offset: 11, duration: 12, }, ] @@ -145,7 +145,7 @@ const getBiMonthsPeriodType = () => [ { id: 'BIMONTHS_THIS_YEAR', name: i18n.t('Bi-months this year'), - offset: 0, + offset: 5, duration: 6, }, ] @@ -172,7 +172,7 @@ const getQuartersPeriodType = () => [ { id: 'QUARTERS_THIS_YEAR', name: i18n.t('Quarters this year'), - offset: 0, + offset: 3, duration: 4, }, ]