From 26104541bc42a6d0ca8961b24e1fe5e971866b08 Mon Sep 17 00:00:00 2001 From: Dan Percic Date: Thu, 9 Feb 2023 22:37:46 +0200 Subject: [PATCH] RED-6074: fix date when requesting license data --- .../src/app/modules/admin/screens/license/utils/functions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/red-ui/src/app/modules/admin/screens/license/utils/functions.ts b/apps/red-ui/src/app/modules/admin/screens/license/utils/functions.ts index 2e5a7808f..1c29ba8b2 100644 --- a/apps/red-ui/src/app/modules/admin/screens/license/utils/functions.ts +++ b/apps/red-ui/src/app/modules/admin/screens/license/utils/functions.ts @@ -2,7 +2,7 @@ import dayjs from 'dayjs'; import { IDateRange } from '@red/domain'; export function toDate(month: number, year: number) { - return dayjs(`${month}-01-${year}`, 'MM-DD-YYYY').toDate(); + return dayjs(`01-${month}-${year}`, 'D-M-YYYY').toDate(); } export function isCurrentMonth(month: number, year: number) {