RED-6074: fix date when requesting license data

This commit is contained in:
Dan Percic 2023-02-09 22:37:46 +02:00
parent 5a2f932a3c
commit 26104541bc

View File

@ -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) {