Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

[BUG] Incorrect time after uploading #4898

Closed
3 tasks done
dm3010 opened this issue Nov 8, 2023 · 12 comments
Closed
3 tasks done

[BUG] Incorrect time after uploading #4898

dm3010 opened this issue Nov 8, 2023 · 12 comments

Comments

@dm3010
Copy link

dm3010 commented Nov 8, 2023

The bug

image
image

These are two photos from the same phone, taken 3 hours apart in time
Info about before uploading
Time 15:00 (1 photo) and 18:01 (2 photo) - Correct all

image
image

After uploading from mobile app, one of the photos has the wrong time
Time 18:00 (1 photo) wrong! and 18:01 (2 photo) - correct

I've tried uploading them via the web interface as well, and the problem is the same

The problem seems to be due to timezone, as the time shift on the wrong photo is the same as +3 hours (My timezone GMT+3)

What surprises me the most is that these photos were taken on the same day with the same phone

The OS that Immich Server is running on

Docker

Version of Immich Server

v1.85

Version of Immich Mobile App

v1.85

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

*

Your .env content

*

Reproduction steps

1.
2.
3.
...

Additional information

No response

@dm3010 dm3010 added bug labels Nov 8, 2023
@andyxpert
Copy link

do you have the timezone set correctly ?
https://immich.app/docs/install/environment-variables#general - look for TZ env variable

@dm3010
Copy link
Author

dm3010 commented Nov 13, 2023

I tried adding this option (TZ="GMT+3"), and got an increase in first photo time by another three hours
First photo time is set to 21:00

@uenokatsura
Copy link

uenokatsura commented Dec 17, 2023

I have the same problem here, the time was added 8 hours (cause I'm in GMT+8)
This happened on the iOS screenshot.
I tried added TZ="GMT+8" but that made no change at all.
Original File Here
IMG_1460

@uenokatsura
Copy link

Also a related bug.
Though mobile version can. Immich webui won't list photos "from the future".

@MDsza
Copy link

MDsza commented Jan 20, 2024

I am loving Immich more and more... but same problem here (in Switzerland = GMT/UTC+1): Only iOS Screenshots are shown with wrong timestamp = +1 hour in the future after uploading to Immich what results in a wrong order of the images on my iPhone AND the WebUI, too. Images shot on the iPhone are shown with the right time stamp... hmmm. Any solution?

@DJPapa66
Copy link

Hello,

I have the same problem and don't understand why the recording date isn't just taken. E.G. the photo was taken at 15:52:37 and not 16:52:37. That's it. Why does something have to be calculated? I'm "lucky" that it's only +1 hour (Berlin) for me. I could deal with that if necessary. However, I don't understand it.
It would be great if I could choose how to import - maybe in the settings (with or without calculation).

@BjGoCraft
Copy link

BjGoCraft commented Mar 13, 2024

Same problem here: Two photos were taken 3 seconds apart. When looking at the metadata locally on my PC, the time on both is right. When uploading both pictures to immich via the web interface, one has the correct time stamp and one is suddenly one hour later (GMT +1).
Edit: I just found out that the picture with the right time has location data while the other hasn't.

@alextran1502
Copy link
Contributor

alextran1502 commented Mar 13, 2024

@BjGoCraft can you share those teo photos for troubleshooting?

Saw your edit, that explains it

@BjGoCraft
Copy link

@BjGoCraft can you share those teo photos for troubleshooting?

Saw your edit, that explains it

I did send you an e-mail, I don't want to publish my face :)

@ygaeon
Copy link

ygaeon commented Apr 17, 2024

Can confirm I experience this as well ..

(tried to attach photos here but unable to)

Photo date/timestamp on phone is 2024-04-15 15:37:57
Phone timezone is CET (GMT +2).

Once uploaded to Immich server, photo date/timestamp becomes 2024-04-15 17:37 GMT+02:00

....

While researching a bit, discovered that /etc/localtime was symlinked to /usr/share/zoneinfo/Etc/UTC even though I created the container with --volume /etc/localtime:/etc/localtime:ro and the host's localtime is linked to CEST.

Do you set this /etc/localtime from somewhere else starting up?

Please advice ..

@BjGoCraft
Copy link

My /etc/localtime is symlinked to /usr/share/zoneinfo/Europe/Berlin so that is right.
In my docker-compose.yml und the immich-microservices > volumes: > there is - /etc/localtime:/etc/localtime:ro
so all time zones are set to local time. The timezone isn't specified anywhere else. I didn't create the container with any flags but as described in the docs. The problem @dm3010 is experiencing too seems to be linked to if the photo has location data or not

@semiligneous
Copy link

semiligneous commented Jun 16, 2024

I get this too. Seems quite simple to reproduce:

  • Docker compose installation, no customisation.
  • host tz as something ahead of utc by a few hours
  • Leave /etc/localtime mounted from host
  • take a screenshot on iOS and immediately upload it via the app
  • take a photo on iOS and immediately upload it via the app

Observe that the photo correctly appears with date/time in local time showing in timeline as expected

Observe that the screen shot shows in timeline 'in the future'- if your utc tz offset is large and you took the screenshot late enough in the day, it will even show under tomorrow's date in the timeline

The date itself is off by whatever the utc offset happens to be.

Seems to be impossible to fix (edit: through config files) since it affects only certain media - in this case screenshots but as others have said, possibly also media without a location?
I'm

@immich-app immich-app locked and limited conversation to collaborators Sep 4, 2024
@jrasm91 jrasm91 converted this issue into discussion #12322 Sep 4, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants