diff --git a/src/exif.rs b/src/exif.rs index 6a1ab2f..c7019a9 100644 --- a/src/exif.rs +++ b/src/exif.rs @@ -216,6 +216,8 @@ fn parse_exif_datetime(field: &exif::Field) -> Option { use chrono::NaiveDateTime; // EXIF datetime format: "YYYY:MM:DD HH:MM:SS" + // Note: EXIF dates are local time without timezone info + // We return the timestamp as if it were UTC, and the client will display it as-is NaiveDateTime::parse_from_str(&datetime_str, "%Y:%m:%d %H:%M:%S") .ok() .map(|dt| dt.and_utc().timestamp()) @@ -224,11 +226,7 @@ fn parse_exif_datetime(field: &exif::Field) -> Option { } } -fn extract_gps_coordinate( - exif: &exif::Exif, - coord_tag: Tag, - ref_tag: Tag, -) -> Option { +fn extract_gps_coordinate(exif: &exif::Exif, coord_tag: Tag, ref_tag: Tag) -> Option { let coord_field = exif.get_field(coord_tag, In::PRIMARY)?; let ref_field = exif.get_field(ref_tag, In::PRIMARY)?;