metadatamenu icon indicating copy to clipboard operation
metadatamenu copied to clipboard

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

Open htmljenn opened this issue 6 months ago • 3 comments

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

htmljenn avatar Feb 23 '24 19:02 htmljenn

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

mdelobelle avatar Feb 24 '24 06:02 mdelobelle

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

htmljenn avatar Feb 24 '24 21:02 htmljenn

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

mdelobelle avatar Feb 26 '24 22:02 mdelobelle