diff --git a/components/admin/upload/FileUpload.tsx b/components/admin/upload/FileUpload.tsx index 17df109..d8b95d5 100644 --- a/components/admin/upload/FileUpload.tsx +++ b/components/admin/upload/FileUpload.tsx @@ -63,7 +63,7 @@ export default function FileUpload() { exifObj.make = tags?.Make?.description exifObj.model = tags?.Model?.description exifObj.bits = tags?.['Bits Per Sample']?.description - exifObj.data_time = tags?.DateTime?.description + exifObj.data_time = tags?.DateTimeOriginal?.description !== '' ? tags?.DateTimeOriginal?.description : tags?.DateTime?.description; exifObj.exposure_time = tags?.ExposureTime?.description exifObj.f_number = tags?.FNumber?.description exifObj.exposure_program = tags?.ExposureProgram?.description @@ -253,7 +253,7 @@ export default function FileUpload() { exifObj.make = tags?.Make?.description exifObj.model = tags?.Model?.description exifObj.bits = tags?.['Bits Per Sample']?.description - exifObj.data_time = tags?.DateTime?.description + exifObj.data_time = tags?.DateTimeOriginal?.description !== '' ? tags?.DateTimeOriginal?.description : tags?.DateTime?.description; exifObj.exposure_time = tags?.ExposureTime?.description exifObj.f_number = tags?.FNumber?.description exifObj.exposure_program = tags?.ExposureProgram?.description @@ -666,4 +666,4 @@ export default function FileUpload() { ) -} \ No newline at end of file +}