time zone issues with sidecar
I have pictures that have timestamps in exif but no time zone information (eg. 2023-01-01 11:22:33.440000). I created sidecar files with timezone like
<exif:DateTimeOriginal>2023-01-01T11:22:33.440000-04:00</exif:DateTimeOriginal>
. When the files are uploaded into immich, it appears immich thinks the pictures is taken at 11:22:33 UTC, because on the web the timestamp is 07:22 AM GMT-04:00.
If I don't include the sidecar file and upload the picture only, immich thinks the picture is taken at 11:22:33 UTC (the host server, all the docker containers and the db are set to UTC, no TZ environment variable anywhere). On the web the timestamp is dependent on the OS's timezone setting (07:22 AM GMT-04:00 on a UTC-4 system, and 04:22 AM GMT-07:00 on a UTC-7 system).
Here's a table showing what's going on:
So, it looks like immich takes the date time value (without timezone) as a UTC time, and adds the timezone from the sidecar. Server is 1.81.1 I don't think I had this problem in 1.7x versions, but not 100% sure.1 Reply
Created another sidecar with completely different timestamp and time zone, Immich ignores the time from the sidecar. It only took the timezone from the sidecar and shifted the displayed time on the web.