Skip to content

Commit

Permalink
Merge pull request #156 from gw-lim/hotfix/date
Browse files Browse the repository at this point in the history
⚡️ hotfix: 사파리에서 date 호환되도록 수정
  • Loading branch information
gw-lim authored Feb 22, 2024
2 parents 1ff493e + 14d9d82 commit 6c2c1e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/_components/bottom-sheet/content/CalendarContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ const CalendarContent = ({ contentRef, type, setStartDateFilter, setEndDateFilte
useEffect(() => {
if (range?.from) {
if (!range.to) {
setStartDateFilter(format(range.from, "yyyy.MM.dd", { locale: ko }));
setStartDateFilter(format(range.from, "yyyy-MM-dd", { locale: ko }));
} else if (range.to) {
setStartDateFilter(format(range.from, "yyyy.MM.dd", { locale: ko }));
setEndDateFilter(format(range.to, "yyyy.MM.dd", { locale: ko }));
setStartDateFilter(format(range.from, "yyyy-MM-dd", { locale: ko }));
setEndDateFilter(format(range.to, "yyyy-MM-dd", { locale: ko }));
if (endFunc) endFunc();
}
}
Expand Down

0 comments on commit 6c2c1e1

Please sign in to comment.