Timestamps in the postgresql database around 1794-01-01
break immich in lots of ways
#16870
Open
3 tasks done
1794-01-01
break immich in lots of ways
#16870
The bug
I have some very old images in my database dated to
1910-01-01
. While these image work, images with exif data at1794-01-01
cause lots of issues inside of immich and render the webui and app unusable.The following sql statement can be used to detect these faulty dates:
I have not tested at which point before 1970 issues arise but I suggest to use the postgresql
CHECK
feature to prevent timestamps that are too old form being inserted into the database. Ideally checks should be added to the relevant code in the server too.Steps to fix the problem
a."localDateTime", a."fileCreatedAt", a."fileModifiedAt"
The OS that Immich Server is running on
Arch with docker
Version of Immich Server
v1.129.0
Version of Immich Mobile App
v1.129.0
Platform with the issue
Reproduction steps
exiftool -DateTimeOriginal="1794:01:01 00:00:00" image.jpg
Notes:
1910-01-01
is still working fine. ✅1794-01-01
is no longer working. ❌See also #16686.
The text was updated successfully, but these errors were encountered: