Skip to content
This repository was archived by the owner on Sep 9, 2024. It is now read-only.
This repository was archived by the owner on Sep 9, 2024. It is now read-only.

DateTime widget shows "T00:00:00.000+01:00" after date, when time_format: false #345

@Skrubbadubba

Description

@Skrubbadubba

image

Describe the bug:
This string appears after the date, even though time_format: false. It still works - format is "dd-MM-yyyy", and it saves the field on the actual file with that format.

Expected behaviour:
That string should not be there. Even though it doesn't appear in the file, it will be confusing to users.

Config:

collections:
  - name: nyheter
    label: Nyheter
    label_singular: nyhet
    folder: src/data/nyheter
    create: true
    fields:
     - {label: Rubrik, name: title, widget: string, required: true}
     - {label: Datum, name: date, widget: datetime, time_format: false, format: "dd-MM-yyyy"} 
     - {label: Omslagsbild, name: img, widget: image, required: false}
     - {label: Utdrag, name: excerpt, widget: text, required: true, hint: "Detta är det som står på startsidans nyhetsflöden. Du behöver inte komma på nåt speciellt, copy pastea bara 3 första meningarna från inlägget"}
     - {label: Inlägget, name: body, widget: markdown, required: true}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions