Skip to content

Commit

Permalink
[Fix] 23:59에 지원서 마감되는 에러 해결 (#360)
Browse files Browse the repository at this point in the history
* fix: 지원서 23시 59분 59초 까지 받기
  • Loading branch information
eonseok-jeon authored Aug 7, 2024
1 parent 843862f commit b4487ee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/views/ApplyPage/components/ApplyInfo/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { format } from 'date-fns';
import { format, subMinutes } from 'date-fns';
import { ko } from 'date-fns/locale';
import { memo, useContext } from 'react';

Expand Down Expand Up @@ -34,7 +34,9 @@ const ApplyInfo = memo(({ isReview }: { isReview: boolean }) => {
const formattedApplicationStart = format(new Date(applicationStart || ''), 'M월 dd일 (E) aaa HH시 mm분', {
locale: ko,
});
const formattedApplicationEnd = format(new Date(applicationEnd || ''), 'M월 dd일 (E) aaa HH시 mm분', { locale: ko });
const formattedApplicationEnd = format(subMinutes(new Date(applicationEnd || ''), 1), 'M월 dd일 (E) aaa HH시 mm분', {
locale: ko,
});
const formattedApplicationConfirmStart = format(
new Date(applicationPassConfirmStart || ''),
'M월 dd일 (E) aaa HH시 mm분',
Expand Down

0 comments on commit b4487ee

Please sign in to comment.