fix typo causing crash in safari

This commit is contained in:
Ajay Bura 2025-06-27 14:06:53 +05:30
parent d8bcba94c9
commit c1100b7b16

View file

@ -24,7 +24,7 @@ export const timeDayMonYear = (ts: number): string => dayjs(ts).format('D MMM YY
export const timeDayMonthYear = (ts: number): string => dayjs(ts).format('D MMMM YYYY'); export const timeDayMonthYear = (ts: number): string => dayjs(ts).format('D MMMM YYYY');
export const daysInMonth = (month: number, year: number): number => export const daysInMonth = (month: number, year: number): number =>
dayjs(`${year}-${month}-1'`).daysInMonth(); dayjs(`${year}-${month}-1`).daysInMonth();
export const dateFor = (year: number, month: number, day: number): number => export const dateFor = (year: number, month: number, day: number): number =>
dayjs(`${year}-${month}-${day}`).valueOf(); dayjs(`${year}-${month}-${day}`).valueOf();