You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Media timeline uses file modification date instead of EXIF original date #4486
The Media timeline in the Nextcloud iOS app appears to group and sort photos by the file modification timestamp (getlastmodified / mtime) instead of the original photo date exposed by the server as nc:metadata-photos-original_date_time.
On the same account and files:
The Nextcloud web Photos timeline places photos according to their EXIF original date.
The iOS Media timeline places the same photos according to their later file modification date.
The EXIF metadata is present and correct on the server. For example, a photo taken on 15 June 2019 is grouped in the iOS timeline under April 2021 (and other affected photos appear under recent dates), while the browser Photos timeline shows the correct capture date.
This affects both photos uploaded using automatic upload and photos selected manually from the iOS Photos library.
Expected behaviour
When the server provides nc:metadata-photos-original_date_time, the iOS Media timeline should use that original date for sorting and month/year grouping, consistent with the Nextcloud web Photos app. File modification time should only be a fallback when no original-date metadata is available.
Actual behaviour
The iOS Media timeline appears to use the file modification date, so older photos are grouped under incorrect months/years even though the server has correct original-date metadata.
Investigation
In the 35.2.2 source, the Media WebDAV query in NCMediaNetwork.swift appears to request d:getlastmodified and the Media data source sorts/groups using its local date field. I could not find the EXIF original-date property being requested or used in that timeline path.
Could you confirm whether the Media query should request nc:metadata-photos-original_date_time and map it to the timeline date, rather than relying on getlastmodified?
Environment
Nextcloud iOS app: 35.2.2.0
Nextcloud server: 35.0.3.2
Photos app: 8.0.0
Device: iPhone (iOS version not yet recorded)
I can provide further diagnostics or a sanitized WebDAV response if useful.
Activity
feat: add date taken sorting to Media