You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Metadata: Day cannot be changed from 31 to "Unknown" in February #5038
Photos and videos cannot have their metadata set to February 2002. All other dates (to my knowledge) work just fine.
2. How can we reproduce it?
Set a photo or video to February 2002. Observe the issue.
3. What behavior do you expect?
I should be able to set this date.
4. What could be the cause of your problem?
Not sure. Maybe 02/2002 somehow trips up the system? I tried 03/2003 and this worked fine. I have 14,000+ photos each with different dates that all work fine. This is the only one I cannot set. It doesn't matter which photo I try to set this date on. I cannot set it.
5. Can you provide us with example files for testing, error logs, or screenshots?
Screen.Recording.2025-05-30.at.3.23.31.PM.mov
6. Which software versions do you use?
(a) PhotoPrism Architecture & Build Number: AMD64
(b) Database Type & Version: MariaDB
(c) Operating System Types & Versions: Linux
(d) Browser Types & Versions: Safari
(e) Ad Blockers, Browser Plugins, and/or Firewall Software? No
7. On what kind of device is PhotoPrism installed?
This is especially important if you are reporting a performance, import, or indexing issue. You can skip this if you're reporting a problem you found in our public demo, or if it's a completely unrelated issue, such as incorrect page layout.
(a) Device / Processor Type: Intel Core i7
(b) Physical Memory & Swap Space in GB: 64GB
(c) Storage Type: SSD
(d) Anything else that might be helpful to know?
8. Do you use a Reverse Proxy, Firewall, VPN, or CDN?
It could be that the day (which is still needed for internal sorting is taken from the file mod time. When the day is > 28 it validation might fail. So try setting the day as well to a day that exists in February. You can then change it back to unknown.
Our database needs to save a valid date for sorting. That's why in case no date information is available in the file's metadata or filename the added date (date on which the file has been added to PhotoPrism) is saved internally. I can confirm that this:
So try setting the day as well to a day that exists in February. You can then change it back to unknown.
I believe this should fix the problem. At least, that's what my initial testing showed. You are welcome to test it again once an updated preview build is available, probably later today:
changed the title [-]Cannot date to specifically "February 2002" (Invalid DateTime)[/-][+]Metadata: Day cannot be changed from 31 to "Unknown" in February[/+]on Jul 2, 2025
Activity
lastzero commentedon May 31, 2025
It could be that the day (which is still needed for internal sorting is taken from the file mod time. When the day is > 28 it validation might fail. So try setting the day as well to a day that exists in February. You can then change it back to unknown.
graciousgrey commentedon Jun 7, 2025
Our database needs to save a valid date for sorting. That's why in case no date information is available in the file's metadata or filename the added date (date on which the file has been added to PhotoPrism) is saved internally. I can confirm that this:
So try setting the day as well to a day that exists in February. You can then change it back to unknown.
works, even if the added date's day is >28
Metadata: Reset the day string value to 01 if exact day is unknown #5038
lastzero commentedon Jul 2, 2025
I believe this should fix the problem. At least, that's what my initial testing showed. You are welcome to test it again once an updated preview build is available, probably later today:
[-]Cannot date to specifically "February 2002" (Invalid DateTime)[/-][+]Metadata: Day cannot be changed from 31 to "Unknown" in February[/+]Tests: Add unit tests #5038