From 45fa6c1671a3f7993c7122be72221e4a2fc73969 Mon Sep 17 00:00:00 2001 From: Aleksander Sklorz Date: Wed, 25 Oct 2023 14:49:27 +0200 Subject: [PATCH] ACS-6189 Reverted unwanted changes --- .../components/widgets/date-range/date-range.widget.spec.ts | 4 ++-- .../components/widgets/date-range/date-range.widget.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/insights/src/lib/analytics-process/components/widgets/date-range/date-range.widget.spec.ts b/lib/insights/src/lib/analytics-process/components/widgets/date-range/date-range.widget.spec.ts index 3d2a4dbb7bf..1b2a848a43f 100644 --- a/lib/insights/src/lib/analytics-process/components/widgets/date-range/date-range.widget.spec.ts +++ b/lib/insights/src/lib/analytics-process/components/widgets/date-range/date-range.widget.spec.ts @@ -75,8 +75,8 @@ describe('DateRangeWidgetComponent', () => { widget.onGroupValueChanged(); - expect(emitted.startDate).toBe('13/03/2023T00:00:00.000Z'); - expect(emitted.endDate).toBe('14/04/2023T00:00:00.000Z'); + expect(emitted.startDate).toBe('2023-03-13T00:00:00.000Z'); + expect(emitted.endDate).toBe('2023-04-14T00:00:00.000Z'); }); it('should validate date range', async () => { diff --git a/lib/insights/src/lib/analytics-process/components/widgets/date-range/date-range.widget.ts b/lib/insights/src/lib/analytics-process/components/widgets/date-range/date-range.widget.ts index a176d82ced3..162c54b60d7 100644 --- a/lib/insights/src/lib/analytics-process/components/widgets/date-range/date-range.widget.ts +++ b/lib/insights/src/lib/analytics-process/components/widgets/date-range/date-range.widget.ts @@ -24,7 +24,7 @@ import { DateAdapter, MAT_DATE_FORMATS } from '@angular/material/core'; import { ReportParameterDetailsModel } from '../../../../diagram/models/report/report-parameter-details.model'; import { isAfter } from 'date-fns'; -const FORMAT_DATE_ACTIVITI = 'dd-MM-yyyy'; +const FORMAT_DATE_ACTIVITI = 'yyyy-MM-dd'; const DISPLAY_FORMAT = 'dd/MM/yyyy'; interface DateRangeProps {