Shared link expiration date shows "56 years ago" in edit view #8244

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

Originally created by @itrass on GitHub (Jan 13, 2026).

I have searched the existing issues, both open and closed, to make sure this is not a duplicate report.

  • Yes

The bug

When editing an existing shared link, the expiration date is incorrectly displayed as "56 years ago" (referencing the Unix Epoch 1970) instead of the actual set duration (e.g., 7 days). This seems to be a display issue specifically within the link editing metadata view.

Image

The OS that Immich Server is running on

Debian - Portainer

Version of Immich Server

2.4.1

Version of Immich Mobile App

.

Platform with the issue

  • Server
  • Web
  • Mobile

Device make and model

No response

Your docker-compose.yml content

.

Your .env content

.

Reproduction steps

  1. Create shared link with an expiration date.
  2. Go to "Sharing" > "Shared links".
  3. Click on the "Edit" icon for the newly created link.
  4. See the expiration field showing "56 years ago".

Relevant log output


Additional information

No response

Originally created by @itrass on GitHub (Jan 13, 2026). ### I have searched the existing issues, both open and closed, to make sure this is not a duplicate report. - [x] Yes ### The bug When editing an existing shared link, the expiration date is incorrectly displayed as "56 years ago" (referencing the Unix Epoch 1970) instead of the actual set duration (e.g., 7 days). This seems to be a display issue specifically within the link editing metadata view. <img width="434" height="839" alt="Image" src="https://github.com/user-attachments/assets/14e60d02-a4f6-40cf-9049-6e9d5116972b" /> ### The OS that Immich Server is running on Debian - Portainer ### Version of Immich Server 2.4.1 ### Version of Immich Mobile App . ### Platform with the issue - [x] Server - [x] Web - [ ] Mobile ### Device make and model _No response_ ### Your docker-compose.yml content ```YAML . ``` ### Your .env content ```Shell . ``` ### Reproduction steps 1. Create shared link with an expiration date. 2. Go to "Sharing" > "Shared links". 3. Click on the "Edit" icon for the newly created link. 4. See the expiration field showing "56 years ago". ### Relevant log output ```shell ``` ### Additional information _No response_
Author
Owner

@timonrieger commented on GitHub (Jan 13, 2026):

cannot reproduce this on v2.4.1, also #24686 fixed a related issue

@timonrieger commented on GitHub (Jan 13, 2026): cannot reproduce this on v2.4.1, also #24686 fixed a related issue
Author
Owner

@btecu commented on GitHub (Jan 13, 2026):

I have this same issue on 2.4.1:

Image
@btecu commented on GitHub (Jan 13, 2026): I have this same issue on `2.4.1`: <img width="403" height="347" alt="Image" src="https://github.com/user-attachments/assets/394b9c8e-35cb-4dee-9ad4-26a64a455363" />
Author
Owner

@timonrieger commented on GitHub (Jan 13, 2026):

I have this same issue on 2.4.1:

can you (@btecu and @itrass ) share the exact reproduction? cannot reproduce what OP describers on two different installations

  • is the link expired or still valid?
  • has the link been set initially with an expiry date or infinite (OP mentions the former)?
  • does it happen on all shared links or just specifics?
  • when did you create the shared link apprx.? Before the v2.4.1 release or after?

a screen recording would be helpful as well

EDIT: could reproduce this now, but only on expired share links. Creation date does not matter.

@timonrieger commented on GitHub (Jan 13, 2026): > I have this same issue on `2.4.1`: can you (@btecu and @itrass ) share the exact reproduction? cannot reproduce what OP describers on two different installations - is the link expired or still valid? - has the link been set initially with an expiry date or infinite (OP mentions the former)? - does it happen on all shared links or just specifics? - when did you create the shared link apprx.? Before the v2.4.1 release or after? a screen recording would be helpful as well EDIT: could reproduce this now, but only on expired share links. Creation date does not matter.
Author
Owner

@btecu commented on GitHub (Jan 13, 2026):

In my case, both links that have this issue are expired and were created before 2.4.1. I noticed because I wanted to extend the expiration date, but that field is disabled and just says 56 years ago.

@btecu commented on GitHub (Jan 13, 2026): In my case, both links that have this issue are expired and were created before `2.4.1`. I noticed because I wanted to extend the expiration date, but that field is disabled and just says `56 years ago`.
Author
Owner

@YarosMallorca commented on GitHub (Jan 13, 2026):

Should be fixed by #24686

@YarosMallorca commented on GitHub (Jan 13, 2026): Should be fixed by #24686
Author
Owner

@timonrieger commented on GitHub (Jan 13, 2026):

Should be fixed by #24686

a lol, thought it was already part of the last release 😅 . Yes that fixes this issue. Thanks!

@timonrieger commented on GitHub (Jan 13, 2026): > Should be fixed by [#24686](https://github.com/immich-app/immich/pull/24686) a lol, thought it was already part of the last release 😅 . Yes that fixes this issue. Thanks!
Author
Owner

@KusAdama commented on GitHub (Jan 22, 2026):

I created on Immich web a shared link and it have this value in drop down menu.

Immich is 2.4.1.

It's to be seen only on link edit menu:

Image

The Shared links part of Immich (the page where all the links are gathered) showing original 7 days:

Image

If the link was created in the mobile application (Android), it does behave all right.
There is no such value in drop down.

After changing the value for a different one in list, the original value reappearing in list and the 56 years doesn't show itself again.

After creating multiple links, all of them have 56 as default drop down menu value for any given expire time.

Also there is 55 to be seen:

Image

This bug seems a bit random, as when I continued and created more than 50 shared links, the wrong date somehow did not reappear again with certainty after a while, not even after another Docker restart.

It's as if this many shared links somehow pushed some value out of possible options, but still, after another few dozen, one with 55 years was created.

@KusAdama commented on GitHub (Jan 22, 2026): I created on Immich web a shared link and it have this value in drop down menu. Immich is 2.4.1. It's to be seen only on link edit menu: <img width="399" height="87" alt="Image" src="https://github.com/user-attachments/assets/b6ecdb36-d4b5-40e8-bc98-94da9719d4e8" /> The Shared links part of Immich (the page where all the links are gathered) showing original 7 days: <img width="150" height="88" alt="Image" src="https://github.com/user-attachments/assets/fa9cdf2e-264e-49ac-b546-38fd70162643" /> If the link was created in the mobile application (Android), it does behave all right. There is no such value in drop down. After changing the value for a different one in list, the original value reappearing in list and the 56 years doesn't show itself again. After creating multiple links, all of them have 56 as default drop down menu value for any given expire time. Also there is 55 to be seen: <img width="382" height="146" alt="Image" src="https://github.com/user-attachments/assets/ab360f82-06e5-4cbb-84ac-66d35a07e445" /> This bug seems a bit random, as when I continued and created more than 50 shared links, the wrong date somehow did not reappear again with certainty after a while, not even after another Docker restart. It's as if this many shared links somehow pushed some value out of possible options, but still, after another few dozen, one with 55 years was created.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#8244