marcusolsson / obsidian-projects

Plain text project planning in Obsidian
Apache License 2.0
1.42k stars 56 forks source link

Datetime support by extending Date type (proposal 1) #892

Closed Acylation closed 3 months ago

Acylation commented 4 months ago

Closes #390 and closes #750, a variation of #888

The UI part shares the same solution. A good thing here, by recognizing datetime value as Date type, is that no extra codes are needed for the filtering/coloring.

GitMurf commented 3 months ago

@Acylation it seems that Dates are behaving differently than in the past, specifically with empty/null dates. In the past I could use a date selector and choose "clear" to not select a date, and then it would work in Projects. But now it seems it will enter "Invalid Date" in the YAML frontmatter which then breaks Obsidian projects and I have to manually open the source file and clear the value out for that YAML date property.

I believe the solution is to update the date value in the YAML frontmatter to just a blank/empty string instead of "Invalid Date".

Acylation commented 3 months ago

Got it, will check this case.

GitMurf commented 3 months ago

sounds good. let me know if you have any questions or need me to test anything!