Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a date that's only a year #40

Open
Mifgan opened this issue Mar 7, 2023 · 3 comments
Open

Adding a date that's only a year #40

Mifgan opened this issue Mar 7, 2023 · 3 comments
Assignees
Labels
Feature Feature request

Comments

@Mifgan
Copy link

Mifgan commented Mar 7, 2023

Describe the bug
When I add a date to a file (edit or bulk edit) that's only in a YYYY format instead of a DD/MM/YYYY format, it doesn't save it.

Expected behavior
Incomplete dates ie MM/YYYY or YYYY get accepted too.

System info (please complete the following information):

  • OS: [e.g. Windows 10 22H2]
  • Release Version 1.1.1
@Mifgan Mifgan added the bug Something isn't working label Mar 7, 2023
@DSPaul
Copy link
Owner

DSPaul commented Mar 7, 2023

The date picker that is used right now doesn't support that behaviour as far as I am aware and I think this is true for a lot of them so fixing this will either require finding one that does (which might not exist) but that will add more dependencies which I am trying to avoid or writing one from scratch which is a massive amount of work because data pickers are quite complex controls.

Even if the UI supported months and years without a date, it would default to something like 1/1/YYYY so that it can be compared to other dates for sorting purposes so I would recommend as a workaround for now to just manually do the same. Just set it to the first of the month/year.

@DSPaul DSPaul moved this to Planned Long Term in COMPASS Roadmap Mar 7, 2023
@Mifgan
Copy link
Author

Mifgan commented Mar 7, 2023

Thanks for the answer!
I'll see if I do 1/1/YYYY or just not adding the dates at all.

@DraftDodger42
Copy link

Semi-related, could we get a preference option to change the date format? I would like to just display the year, for example.

@DSPaul DSPaul added Feature Feature request and removed bug Something isn't working labels May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Feature request
Projects
Status: Planned Long Term
Development

No branches or pull requests

3 participants