게시판 등록시간 수정
This commit is contained in:
@@ -11,6 +11,7 @@ import {
|
||||
import ReproductionPathInput from './ReproductionPathInput';
|
||||
import VerificationIssueCommentsSection from './VerificationIssueCommentsSection';
|
||||
import VerificationIssueAttachmentsSection from './VerificationIssueAttachmentsSection';
|
||||
import { formatIsoDateTime } from '../../utils/timezone';
|
||||
|
||||
interface Props {
|
||||
issue: VerificationIssueDto | null;
|
||||
@@ -23,13 +24,6 @@ interface Props {
|
||||
) => void | Promise<void>;
|
||||
}
|
||||
|
||||
function formatDateTime(iso?: string): string {
|
||||
if (!iso) return '—';
|
||||
try {
|
||||
return new Date(iso).toLocaleString('ko-KR');
|
||||
} catch { return iso; }
|
||||
}
|
||||
|
||||
const VerificationIssueDetailPanel: React.FC<Props> = ({
|
||||
issue,
|
||||
attachmentsRefreshKey = 0,
|
||||
@@ -137,8 +131,8 @@ const VerificationIssueDetailPanel: React.FC<Props> = ({
|
||||
</div>
|
||||
|
||||
<div className="vbd-detail-meta">
|
||||
<span>등록 {formatDateTime(issue.createdAt)}</span>
|
||||
<span>수정 {formatDateTime(issue.updatedAt)}</span>
|
||||
<span>등록 {formatIsoDateTime(issue.createdAt)}</span>
|
||||
<span>수정 {formatIsoDateTime(issue.updatedAt)}</span>
|
||||
</div>
|
||||
|
||||
<label className="vbd-field">
|
||||
|
||||
Reference in New Issue
Block a user