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

Attempting to initial set a date in a date field of a note edit results in invalid date error #980

Closed
stumpyofpain opened this issue Dec 17, 2024 · 1 comment
Labels
kind/bug Something isn't working needs-triage Issue needs a triage/* label

Comments

@stumpyofpain
Copy link

What happened?

I made a new entry in my new Project and when i edit the note in the board view and try to set a date, it gets reset and i cant set a date anymore.
When i look into the table view, i see, that the date column was modified from date to string.

Start Time is a Date.
image

i go to the board view and add a note.
image

Then i edit the new note and set a Date.
It dosnt matter if i take the date picker or write the date myself.
image

The Date is choosen and visible, until i leave the cell.

image image

When i change to the table view, everything is gone for a while.
image

Now the Start Time is a String, as an invalid Date was set.
image

Meanwhile, the Date "Initial Time" was automatically reset from string to date. (happens sometimes)

Inside the note i can set the properties so i can see the Start Time and there it still is a Date with an invalid value.

image

That Date can be set there to a valid date.
image

If i clear all invalid dates i sometimes can reset the columns to a date.
I have to make a new note, go into that new note, add the 3 properties and choose a valid date for each of them.
Then the columns inside the table resets to "date".

What did you expect to happen?

That i can set a date inside the board view without having any problems.

Even if i set a wrong date, i expect it to keep the column as a date and maybe set a completly different date (e.g. 01.01.1901)

How can we reproduce it (as minimally and precisely as possible)?

  1. Have a project with atleast one date column
  2. Add a note in the Board View
  3. Click on it to edit the note
  4. Enter a Date
  5. leave the Date cell
  6. Save the edit

Anything else we need to know?

If i open the note itself and add the date property there and set a date, everything works fine.
Then I even can change the date in the board view when i edit a note and it dosnt break.

Plugin version

1.17.4

Obsidian version

1.7.7

OS

Windows

@stumpyofpain stumpyofpain added kind/bug Something isn't working needs-triage Issue needs a triage/* label labels Dec 17, 2024
@Acylation
Copy link
Collaborator

Possibly fixed by #998.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working needs-triage Issue needs a triage/* label
Projects
None yet
Development

No branches or pull requests

2 participants