Skip to content

Commit

Permalink
Merge pull request #61 from Code-Hive-GmbH/main
Browse files Browse the repository at this point in the history
Use DATE_FORMAT when parsing the selected date, fix #61
  • Loading branch information
farhoudshapouran committed Feb 12, 2024
2 parents 3c42c81 + 491cd92 commit 537a0bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export function isDateBetween(
export const getFormatedDate = (date: DateType, format: string) =>
dayjs(date).format(format);

export const getDate = (date: DateType) => dayjs(date, CALENDAR_FORMAT);
export const getDate = (date: DateType) => dayjs(date, DATE_FORMAT);

export const getYearRange = (year: number) => {
const endYear = YEAR_PAGE_SIZE * Math.ceil(year / YEAR_PAGE_SIZE);
Expand Down

0 comments on commit 537a0bb

Please sign in to comment.