Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assets are sorted by UTC time, which leads to an inconsistant order with UTC and Local-time assets #9637

Closed
2 of 3 tasks
Hely0n opened this issue May 21, 2024 · 8 comments
Closed
2 of 3 tasks

Comments

@Hely0n
Copy link
Contributor

Hely0n commented May 21, 2024

The bug

I have videos of a trip and we made both gopro and iPhone videos. The GoPro videos just have a time without a Timezone, while the iPhone videos have a Timezone (it shows GMT+03:00 in immich). I wonder how it's possible because as far as i know, Exif doesn't support timezones on videos.

Well the problem is now, that the mixed videos are in a wrong order and I think that's because the UTC time is considered for sorting instead of the local time.

The OS that Immich Server is running on

Unraid

Version of Immich Server

v1.105.1

Version of Immich Mobile App

v1.105.1

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

not relevant

Your .env content

not relevant

Reproduction steps

1. Add videos with and without timezone to your library
2. Look how the utc videos will be sorted like they happened later if recored in GMT+ zones
3.
...

Relevant log output

No response

Additional information

No response

@bo0tzz
Copy link
Member

bo0tzz commented May 21, 2024

If you look at the asset's detail panel, what times does it say there? I think this might be a duplicate of #4898

@Hely0n
Copy link
Contributor Author

Hely0n commented May 21, 2024

The times are correct. An iPhone video has the time "15:23 GMT+3:00" and now there is a GoPro video that will be sorted as later even if it shows "12:37 UTC".

So in the time line, the UTC videos are considered some hours (should be 3?) later.

@bo0tzz
Copy link
Member

bo0tzz commented May 21, 2024

12:37 UTC is after 15:23 GMT+3:00, right?

@Hely0n
Copy link
Contributor Author

Hely0n commented May 21, 2024

I just found out that it's now possible to set the timezone of videos (it didn't commit the change when i tested it right after the feature was released).

Which exiftool command is used to set the timezone of a video via xmp? So I could just bulk-generate xmp files for them

@Hely0n
Copy link
Contributor Author

Hely0n commented May 21, 2024

12:37 UTC is after 15:23 GMT+3:00, right?

Yes

@bo0tzz
Copy link
Member

bo0tzz commented May 21, 2024

So the gopro video is later, and is also sorted as later in the timeline? I don't think there's a problem then, right?

@Hely0n
Copy link
Contributor Author

Hely0n commented May 21, 2024

Technically yes, but it seems like it's not possible to set the timezone on the GoPro. So you just set it to your current local time and it will be saved as UTC.

But I think I could fix that if I apply the same exiftool command that is used by immich because I didn't manage to set the timezone and read somewhere that exif doesn't support timezones on videos

@Hely0n
Copy link
Contributor Author

Hely0n commented May 21, 2024

It looks like it's just a problem with GoPros, so I'll close this and try to bulk edit the timezones of the videos. Thank you.

@Hely0n Hely0n closed this as completed May 21, 2024
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

No branches or pull requests

2 participants