Skip to content

Commit

Permalink
♻️ Date 형식 수정
Browse files Browse the repository at this point in the history
dayjs 사용
  • Loading branch information
LEEJW1953 committed Nov 22, 2023
1 parent 4f66d57 commit 54cec74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/frontend/src/components/MogacoPost/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import dayjs from 'dayjs';

import { Input, Button, Textarea } from '@/components';

import * as styles from './index.css';

export function MogacoPostPage() {
const today = new Date();
const offset = today.getTimezoneOffset() * 60000;
const date = new Date(today.getTime() - offset).toISOString().slice(0, 16);
const date = dayjs(new Date()).format('YYYY-MM-DD HH:mm');

return (
<form className={styles.container}>
Expand Down

0 comments on commit 54cec74

Please sign in to comment.