mirror of
https://github.com/photoprism/photoprism.git
synced 2026-03-02 22:57:18 -05:00
Search: Allow sorting of results by UTC instead of local time #2027
Labels
No labels
ai
android
api
auth
awesome
bug
bug
ci
cli
config
database
declined
deprecated
docker
docs 📚
documents
duplicate
easy
enhancement
enhancement
enhancement
epic
faces
feedback wanted
frontend
hacktoberfest
help wanted
idea
in-progress
incomplete
index
invalid
ios
labels
live
live
low-priority
macos
member-feature
metadata
mobile
nas
needs-analysis
no-coding-required
no-coding-required
observability
performance
places
please-test
plus-feature
priority
pro-feature
question
raspberry-pi
raw
released
released
released
research
resolved
security
sharing
tested
tests
third-party-issue
thumbnails
upgrade
upstream-issue
ux
vector
video
waiting
won't fix
won't fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/photoprism#2027
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @martyone on GitHub (Jan 31, 2024).
1. What is not working as documented?
In the Search view, with Newest First order. A photo and a video taken shortly one after the other appear in wrong order. This happens when the recording device uses time zone other than UTC. In such case the time recorded in video metadata is UTC (standard behavior IIUC) while the time recorded in photo metadata may be local time with time zone information. As mentioned here https://github.com/photoprism/photoprism/issues/2265#issuecomment-1101712272 PhotoPrism seems to sort them based on the "local time", i.e., ignoring the time offset, which seems to explain what I see.
2. How can we reproduce it?
Steps to reproduce the behavior:
3. What behavior do you expect?
The video appears between the two photos, exactly in the order they were taken in.
4. What could be the cause of your problem?
As mentioned here https://github.com/photoprism/photoprism/issues/2265#issuecomment-1101712272 PhotoPrism seems to sort them based on the "local time", i.e., ignoring the time offset.
5. Can you provide us with example files for testing, error logs, or screenshots?
These three files are displayed in wrong order by PhotoPrism - the video appears after the photos with the Newest First ordering.
6. Which software versions do you use?
Build 231128-f48ff16ef
@lastzero commented on GitHub (Jan 31, 2024):
See the following discussion:
@lastzero commented on GitHub (Feb 26, 2024):
@martyone Based on the discussion linked above, this is the intended behavior right now and the only solution would be adding yet another config option (and possibly changing the database indexes and/or queries) so you can choose which behavior you prefer.
You are welcome to share any additional thoughts and/or ideas that you feel have not been discussed yet! 💭
@ggrzeczkowicz commented on GitHub (Aug 17, 2024):
I recently traveled near the UTC+12 and UTC-12 time zones. Their ordering by local time is very inconsistent, as a photo can have the same local date/time and actually have been taken a day apart.
So I think the UTC order is very important.