diff --git a/src/feature/photo-detail/components/SectionPhotoData.tsx b/src/feature/photo-detail/components/SectionPhotoData.tsx index 7d75759..c3b598a 100644 --- a/src/feature/photo-detail/components/SectionPhotoData.tsx +++ b/src/feature/photo-detail/components/SectionPhotoData.tsx @@ -10,6 +10,22 @@ interface SectionPhotoDataProps { onAfterDelete?: () => void; } +// 촬영 시각: 사진 EXIF 시간 그대로 표시 (타임존 변환 안 함) +const formatCaptureTime = (isoString?: string): string => { + if (!isoString) return ''; + + // ISO 문자열에서 직접 파싱 (타임존 변환 없이) + const match = isoString.match( + /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})/, + ); + if (!match) return '정보 없음'; + + const [, year, month, day, hour, minute] = match; + + return `${year}년 ${month}월 ${day}일 ${hour}시 ${minute}분`; +}; + +// 업로드 시각: UTC를 로컬 시간(KST)으로 변환 const formatKoreanDateTime = (isoString?: string): string => { if (!isoString) return ''; @@ -65,7 +81,7 @@ export default function SectionPhotoData({