RED-6074: fix date when requesting license data
This commit is contained in:
parent
5a2f932a3c
commit
26104541bc
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user