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

Issue with exif date with +0000 #15752

Open
1 of 3 tasks
chaletweb opened this issue Jan 28, 2025 · 7 comments
Open
1 of 3 tasks

Issue with exif date with +0000 #15752

chaletweb opened this issue Jan 28, 2025 · 7 comments

Comments

@chaletweb
Copy link

The bug

When Exif info are :
Modify Date : 2025:01:14 18:31:30+0000
Date/Time Original : 2025:01:14 18:31:30+0000
Create Date : 2025:01:14 18:31:30+0000

With +0000

The Date time is wrong 21 Jan. 2025 instead of 14 Jan. 2025

This image providing from an external library

The OS that Immich Server is running on

Debian

Version of Immich Server

v1.125.6

Version of Immich Mobile App

1.125.3

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

#
# WARNING: Make sure to use the docker-compose.yml of the current release:
#
# https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
#
# The compose file on main may not be compatible with the latest release.
#

name: immich

services:
  immich-server:
    container_name: immich_server
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    # extends:
    #   file: hwaccel.transcoding.yml
    #   service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
    volumes:
      # Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - //srv/dev-disk-by-uuid-c177af99-2091-4ea1-a3af-9993f84d110a/Photos:/mnt/media/Photos
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - stack.env
    ports:
      - '2283:2283'
    depends_on:
      - redis
      - database
    restart: always
    healthcheck:
      disable: false

  immich-machine-learning:
    container_name: immich_machine_learning
    # For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag.
    # Example tag: ${IMMICH_VERSION:-release}-cuda
    image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
    # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
    #   file: hwaccel.ml.yml
    #   service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable
    volumes:
      - model-cache:/cache
    env_file:
      - stack.env
    restart: always
    healthcheck:
      disable: false

  redis:
    container_name: immich_redis
    image: docker.io/redis:6.2-alpine@sha256:905c4ee67b8e0aa955331960d2aa745781e6bd89afc44a8584bfd13bc890f0ae

    healthcheck:
      test: redis-cli ping || exit 1
    restart: always

  database:
    container_name: immich_postgres
    image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
      POSTGRES_INITDB_ARGS: '--data-checksums'
    volumes:
      # Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file
      - ${DB_DATA_LOCATION}:/var/lib/postgresql/data
    healthcheck:
      test: >-
        pg_isready --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" || exit 1;
        Chksum="$$(psql --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" --tuples-only --no-align
        --command='SELECT COALESCE(SUM(checksum_failures), 0) FROM pg_stat_database')";
        echo "checksum failure count is $$Chksum";
        [ "$$Chksum" = '0' ] || exit 1
      interval: 5m
      start_interval: 30s
      start_period: 5m
    command: >-
      postgres
      -c shared_preload_libraries=vectors.so
      -c 'search_path="$$user", public, vectors'
      -c logging_collector=on
      -c max_wal_size=2GB
      -c shared_buffers=512MB
      -c wal_compression=on
    restart: always

volumes:
  model-cache:

Your .env content

UPLOAD_LOCATION=//srv/dev-disk-by-uuid-c177af99-2091-4ea1-a3af-9993f84d110a/appdatas/immich/library
DB_DATA_LOCATION=//srv/dev-disk-by-uuid-c177af99-2091-4ea1-a3af-9993f84d110a/appdatas/immich/postgres
IMMICH_VERSION=release
DB_PASSWORD=postgres
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
TZ=Europe/Paris

Reproduction steps

  1. Refresh metadata with a file with +0000 at the end of the Date/Time Original

Relevant log output

Additional information

No response

@chaletweb chaletweb changed the title Issue when Issue with exif date with +0000 Jan 28, 2025
@alextran1502
Copy link
Contributor

+0000 is an invalid timezone format

@alextran1502
Copy link
Contributor

You can also attach the problematic file and we can try to troubleshoot

@chaletweb
Copy link
Author

I know but a good behavior. Could be set the default timezone instead of put a false datetime. No ?
Other photo manager can retrieve the good date with the same photo (nextcloud, memories, photoprism)

@alextran1502
Copy link
Contributor

Can you attach the file?

@chaletweb
Copy link
Author

Image

with exiftool we have this data :
exiftool IMG-20250108-WA0000.jpg
ExifTool Version Number : 12.70
File Name : IMG-20250108-WA0000.jpg
Directory : .
File Size : 302 kB
File Modification Date/Time : 2025:01:29 20:46:19+01:00
File Access Date/Time : 2025:01:29 20:47:00+01:00
File Inode Change Date/Time : 2025:01:29 20:46:19+01:00
File Permissions : -rw-r--r--
File Type : JPEG
File Type Extension : jpg
MIME Type : image/jpeg
JFIF Version : 1.01
Exif Byte Order : Big-endian (Motorola, MM)
X Resolution : 1
Y Resolution : 1
Resolution Unit : None
Modify Date : 2025:01:08 07:18:55+0000
Y Cb Cr Positioning : Centered
Exif Version : 0232
Date/Time Original : 2025:01:08 07:18:55+0000
Create Date : 2025:01:08 07:18:55+0000
Components Configuration : Y, Cb, Cr, -
Flashpix Version : 0100
Color Space : Uncalibrated
Image Width : 2048
Image Height : 1533
Encoding Process : Progressive DCT, Huffman coding
Bits Per Sample : 8
Color Components : 3
Y Cb Cr Sub Sampling : YCbCr4:2:0 (2 2)
Image Size : 2048x1533
Megapixels : 3.1

And on immich :

Image

@alextran1502
Copy link
Contributor

Can you help zip the file up so I have the original file please?

@chaletweb
Copy link
Author

IMG-20250108-WA0000.zip
sure.

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