Skip to content

Metadata: Day cannot be changed from 31 to "Unknown" in February #5038

Closed

Description

@kNoAPP

1. What is not working as documented?

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?

Yes, reverse proxy is used.

Activity

  1. lastzero commented on May 31, 2025

    @lastzero
    Member

    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.

  2. graciousgrey commented on Jun 7, 2025

    @graciousgrey
    Member

    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

  3. lastzero commented on Jul 2, 2025

    @lastzero
    Member

    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:

  4. 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
  5. added
    please-testReady for manual testing & feedback
    and removed
    needs-analysisRequires further investigation
    on Jul 2, 2025
  6. added theissue type on Jul 2, 2025
  7. moved this to Preview 🐳 in Roadmap 🚀✨on Jul 2, 2025
  8. added
    testedChanges have been tested successfully
    and removed
    please-testReady for manual testing & feedback
    on Jul 2, 2025
  9. moved this from Preview 🐳 to Release 🌈 in Roadmap 🚀✨on Jul 7, 2025
  10. added a commit that references this issue on Jul 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

testedChanges have been tested successfullyuxImpacts User Experience

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions