Skip to content

[web] Fix timeline sort for mixed image/video uploads#9975

Open
willsoto wants to merge 1 commit intoente-io:mainfrom
willsoto:fix/timeline-sort-mixed-uploads
Open

[web] Fix timeline sort for mixed image/video uploads#9975
willsoto wants to merge 1 commit intoente-io:mainfrom
willsoto:fix/timeline-sort-mixed-uploads

Conversation

@willsoto
Copy link
Copy Markdown

@willsoto willsoto commented Apr 7, 2026

Fixes #8321

Modifies fileCreationTime() to derive its epoch from the dateTime string
in pubMagicMetadata instead of metadata.creationTime. The dateTime field
always represents local date/time regardless of source format, ensuring
consistent sort ordering between images (EXIF local time) and videos (FFmpeg
UTC time with "Z" suffix). This fixes both existing and new uploads since
dateTime is already stored for all files with extracted metadata.
User-edited times still take priority.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 7, 2026

CLA assistant check
All committers have signed the CLA.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7b31b99cdc

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread web/packages/media/file-metadata.ts Outdated
Comment thread web/packages/media/file-metadata.ts Outdated
@willsoto willsoto force-pushed the fix/timeline-sort-mixed-uploads branch from 7b31b99 to c028018 Compare April 7, 2026 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Photos sorting incorrectly in timeline despite correct timestamps

2 participants