mdelobelle / metadatamenu

For data management enthusiasts : type and manage the metadata of your notes.
https://mdelobelle.github.io/metadatamenu
MIT License
478 stars 27 forks source link

The time type seems to be changed back to a "date" in the last update #605

Open htmljenn opened 4 months ago

htmljenn commented 4 months ago

I use fields with the "time" type every day and ever since the last update, when I try to fill in a property with that field I'm told "value must be a valid date."

image

When I checked the Fileclass fields settings, all my Time entries now say "undefined" in the options area. When I try to edit them, they have date information instead of the HH:mm of a time field.

I can create new Time fields, but any ones that existed before seem munged.

image

mdelobelle commented 4 months ago

Hi, can you paste here the frontmatter of your fileclass file please? (to check the settings of your startTime and endTime fields)

htmljenn commented 4 months ago

Here you go, I removed the non-Time fields.

extends:
fields:
  - name: endTime
    type: Time
    options:
      timeFormat: HH:mm
    path: ""
    id: aOch6O
  - name: startTime
    type: Time
    options:
      timeFormat: HH:mm
    path: ""
    id: YidYWA
version: "2.11"
limit: 20
mapWithTag: false
icon: file-text
tagNames: 
filesPaths: 
bookmarksGroups: 
excludes: 
savedViews: []
favoriteView: 
fieldsOrder:
  - YidYWA
  - aOch6O
  - umxMjB
  - suKNUh
  - D9SVSf
  - 2pLDFf
  - qzTbwM
  - cgGG4n
mdelobelle commented 4 months ago

Oooo my bad, when migrating, I've changed the format of the options for the Time field type and forgot to migrate them... you can change "timeFormat" for "dateFormat" in your fileClass file for the Time fields and it should work