Skip to content

Commit

Permalink
Merge pull request #490 from ttaerrim/date-bug
Browse files Browse the repository at this point in the history
[Bug] HH:MM > HH:mm 찾아서 수정
  • Loading branch information
ttaerrim authored Dec 14, 2023
2 parents ed7dfda + 7319edf commit a301051
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/frontend/src/components/MogacoItem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function MogacoItem({
</address>
<time
className={styles.infoContent}
dateTime={dayjs(date).format('YYYY-MM-DD HH:MM')}
dateTime={dayjs(date).format('YYYY-MM-DD HH:mm')}
>
<Calendar className={styles.icon} width={20} height={20} />
<span className={styles.infoText}>
Expand Down
4 changes: 2 additions & 2 deletions app/frontend/src/pages/MogacoDetail/DetailInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ export function DetailInfo({ id, latitude, longitude }: DetailInfoProps) {
</div>
<time
className={styles.infoItem}
dateTime={dayjs(mogacoData.date).format('YYYY-MM-DD HH:MM')}
dateTime={dayjs(mogacoData.date).format('YYYY-MM-DD HH:mm')}
>
<Calendar width={24} height={24} fill={vars.color.grayscale200} />
<span>{dayjs(mogacoData.date).format('YYYY-MM-DD HH:MM~')}</span>
<span>{dayjs(mogacoData.date).format('YYYY-MM-DD HH:mm~')}</span>
</time>
<address className={styles.infoItem}>
<Map width={24} height={24} fill={vars.color.grayscale200} />
Expand Down
3 changes: 2 additions & 1 deletion app/frontend/src/pages/MogacoPost/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { useNavigate, useSearchParams } from 'react-router-dom';
import { RequestCreateMogacoDto } from '@morak/apitype';
import { Button } from '@morak/ui';
import { useQuery } from '@tanstack/react-query';
import dayjs from 'dayjs';

import { queryKeys } from '@/queries';
import { useSubmitEdit, useSubmitPost } from '@/queries/hooks/post';
Expand Down Expand Up @@ -67,7 +68,7 @@ export function MogacoPostPage() {
latitude,
longitude,
contents,
date: date.toString(),
date: dayjs(date).format('YYYY-MM-DD HH:mm'),
maxHumanCount,
status,
},
Expand Down

0 comments on commit a301051

Please sign in to comment.