[BUG] Unable to Edit Timezone of Photos #1836

Closed
opened 2026-02-05 04:07:37 +03:00 by OVERLORD · 5 comments
Owner

Originally created by @Swamp2k9 on GitHub (Dec 19, 2023).

The bug

Whenever I try to update the date/time of a photo on PC via textfield, I'm unable to edit the timezone. When I click on the required timezone, the dropdown menu disappears without updating the Timezone field.
image

The OS that Immich Server is running on

Debian 12.0

Version of Immich Server

v1.91.3

Version of Immich Mobile App

v1.91.3

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

version: "3.8"

#
# 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}
    command: [ "start.sh", "immich" ]
    volumes:
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - stack.env
    ports:
      - 2283:3001
    depends_on:
      - redis
      - database
    restart: always
    labels:
      - "com.centurylinklabs.watchtower.enable=true" # Autoupdate feature.

  immich-microservices:
    container_name: immich_microservices
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    # extends:
    #   file: hwaccel.yml
    #   service: hwaccel
    command: [ "start.sh", "microservices" ]
    volumes:
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - stack.env
    depends_on:
      - redis
      - database
    restart: always
    labels:
      - "com.centurylinklabs.watchtower.enable=true" # Autoupdate feature.

  immich-machine-learning:
    container_name: immich_machine_learning
    image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
    volumes:
      - model-cache:/cache
    env_file:
      - stack.env
    restart: always
    labels:
      - "com.centurylinklabs.watchtower.enable=true" # Autoupdate feature.

  redis:
    container_name: immich_redis
    image: redis:6.2-alpine@sha256:80cc8518800438c684a53ed829c621c94afd1087aaeb59b0d4343ed3e7bcf6c5
    restart: always
    labels:
      - "com.centurylinklabs.watchtower.enable=true" # Autoupdate feature.

  database:
    container_name: immich_postgres
    image: tensorchord/pgvecto-rs:pg14-v0.1.11
    env_file:
      - stack.env
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
    volumes:
      - pgdata:/var/lib/postgresql/data
    restart: always
    labels:
      - "com.centurylinklabs.watchtower.enable=true" # Autoupdate feature.

volumes:
  pgdata:
  model-cache:

Your .env content

UPLOAD_LOCATION=/mnt/Immich
IMMICH_VERSION=release
TYPESENSE_API_KEY=some-random-text
DB_PASSWORD=postgres
DB_HOSTNAME=immich_postgres
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
REDIS_HOSTNAME=immich_redis

Reproduction steps

1. On the Photos tab, click on a photo.
2. Click the 'Info' button on the top-right of the photo
3. Click the 'Edit Date' button on the right-hand side of the screen.
4. Click the textfield with 'search timezone...'.
5. Select a timezone from the dropdown menu.

Additional information

No response

Originally created by @Swamp2k9 on GitHub (Dec 19, 2023). ### The bug Whenever I try to update the date/time of a photo on PC via textfield, I'm unable to edit the timezone. When I click on the required timezone, the dropdown menu disappears without updating the Timezone field. ![image](https://github.com/immich-app/immich/assets/15842002/899c9a02-632f-40f1-afd5-0eb95c33d2fe) ### The OS that Immich Server is running on Debian 12.0 ### Version of Immich Server v1.91.3 ### Version of Immich Mobile App v1.91.3 ### Platform with the issue - [ ] Server - [X] Web - [ ] Mobile ### Your docker-compose.yml content ```YAML version: "3.8" # # 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} command: [ "start.sh", "immich" ] volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload - /etc/localtime:/etc/localtime:ro env_file: - stack.env ports: - 2283:3001 depends_on: - redis - database restart: always labels: - "com.centurylinklabs.watchtower.enable=true" # Autoupdate feature. immich-microservices: container_name: immich_microservices image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} # extends: # file: hwaccel.yml # service: hwaccel command: [ "start.sh", "microservices" ] volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload - /etc/localtime:/etc/localtime:ro env_file: - stack.env depends_on: - redis - database restart: always labels: - "com.centurylinklabs.watchtower.enable=true" # Autoupdate feature. immich-machine-learning: container_name: immich_machine_learning image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release} volumes: - model-cache:/cache env_file: - stack.env restart: always labels: - "com.centurylinklabs.watchtower.enable=true" # Autoupdate feature. redis: container_name: immich_redis image: redis:6.2-alpine@sha256:80cc8518800438c684a53ed829c621c94afd1087aaeb59b0d4343ed3e7bcf6c5 restart: always labels: - "com.centurylinklabs.watchtower.enable=true" # Autoupdate feature. database: container_name: immich_postgres image: tensorchord/pgvecto-rs:pg14-v0.1.11 env_file: - stack.env environment: POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_USER: ${DB_USERNAME} POSTGRES_DB: ${DB_DATABASE_NAME} volumes: - pgdata:/var/lib/postgresql/data restart: always labels: - "com.centurylinklabs.watchtower.enable=true" # Autoupdate feature. volumes: pgdata: model-cache: ``` ### Your .env content ```Shell UPLOAD_LOCATION=/mnt/Immich IMMICH_VERSION=release TYPESENSE_API_KEY=some-random-text DB_PASSWORD=postgres DB_HOSTNAME=immich_postgres DB_USERNAME=postgres DB_DATABASE_NAME=immich REDIS_HOSTNAME=immich_redis ``` ### Reproduction steps ```bash 1. On the Photos tab, click on a photo. 2. Click the 'Info' button on the top-right of the photo 3. Click the 'Edit Date' button on the right-hand side of the screen. 4. Click the textfield with 'search timezone...'. 5. Select a timezone from the dropdown menu. ``` ### Additional information _No response_
Author
Owner

@waclaw66 commented on GitHub (Dec 19, 2023):

It works fine for me in 1.91.4.

@waclaw66 commented on GitHub (Dec 19, 2023): It works fine for me in 1.91.4.
Author
Owner

@Swamp2k9 commented on GitHub (Dec 19, 2023):

I'm still having the same issue in 1.91.4 when clicking from the dropdown (from the textfield).

image

image

@Swamp2k9 commented on GitHub (Dec 19, 2023): I'm still having the same issue in 1.91.4 when clicking from the dropdown (from the textfield). ![image](https://github.com/immich-app/immich/assets/15842002/76582e7a-505d-4b10-8c99-98a30e68d952) ![image](https://github.com/immich-app/immich/assets/15842002/22900088-6012-4f15-bfe7-09bf16c0e217)
Author
Owner

@ITestInProd commented on GitHub (Dec 20, 2023):

I ran into this issue as well. Using the timezone search bar will never set a timezone itself.

To change the timezone one:

  1. Click on the currently displayed timezone immediately below the search bar
  2. Scroll to the desired timezone
  3. Click on the timezone entry.
  4. Click on Confirm.

The other bug observed with changing the timezone is that Immich appears to only store the offset rather than offset plus name. Ex: Select "Etc/GMT+1" will, on refresh, display as "America/Scoresbysund (UTC-01:00)".

https://github.com/immich-app/immich/assets/5438593/c791a6bb-273c-461e-8ab6-908a2113b638

Edit:
Opened https://github.com/immich-app/immich/issues/5897 for the timezone display name bug.

@ITestInProd commented on GitHub (Dec 20, 2023): I ran into this issue as well. Using the timezone search bar will never set a timezone itself. To change the timezone one: 1. Click on the currently displayed timezone immediately below the search bar 2. Scroll to the desired timezone 3. Click on the timezone entry. 4. Click on Confirm. The other bug observed with changing the timezone is that Immich appears to only store the offset rather than offset plus name. Ex: Select "Etc/GMT+1" will, on refresh, display as "America/Scoresbysund (UTC-01:00)". https://github.com/immich-app/immich/assets/5438593/c791a6bb-273c-461e-8ab6-908a2113b638 Edit: Opened https://github.com/immich-app/immich/issues/5897 for the timezone display name bug.
Author
Owner

@jrasm91 commented on GitHub (Sep 6, 2024):

The UI for the dropdown component has been re-worked and this issue is fixed.

@jrasm91 commented on GitHub (Sep 6, 2024): The UI for the dropdown component has been re-worked and this issue is fixed.
Author
Owner

@C-Otto commented on GitHub (Sep 6, 2024):

Note that, currently, Immich only makes use of the offset. All time zones with "-01:00" are treated the same. The displayed time zone is just any of those matching the given offset, with v1.114.0 (released today) favoring the "home" time zone (as configured in the browser) if the offset matches. There's more to do, and I'm looking into this.

@C-Otto commented on GitHub (Sep 6, 2024): Note that, currently, Immich only makes use of the offset. All time zones with "-01:00" are treated the same. The displayed time zone is just any of those matching the given offset, with v1.114.0 (released today) favoring the "home" time zone (as configured in the browser) if the offset matches. There's more to do, and I'm looking into this.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#1836