decaporg / decap-cms

A Git-based CMS for Static Site Generators
https://decapcms.org
MIT License
17.65k stars 3.02k forks source link

The date field does not work correctly #7166

Closed Juniors017 closed 2 months ago

Juniors017 commented 2 months ago

I qualify the date field with :

- label: "Date" name: "Date" widget: datetime date_format: "DD.MM.YYYY" # e.g. 24.12.2021 hint: 'Date de publication' If today date is 03/04/2024 (DD/MM/YYYY) I select date "now" but decapCMS add 04/03/2024 Day and Month are reverse image But in preview is OK image in frontmatter is KO

i use this script for use decap :

demshy commented 2 months ago

should be fixed with 3.1.9 version, could you please try again and confirm?

Juniors017 commented 2 months ago

should be fixed with 3.1.9 version, could you please try again and confirm?

if you use this it's OK

- label: "Date de création"
      name: "date"
      widget: datetime
      default: ""
      hint: 'Date de création'  
      format: 'L'

if you use this it's OK

- label: "Date de création"
      name: "date"
      widget: datetime
      default: ""
      hint: 'Date de création'  
      format: 'LLL'

and if you use this it's OK

- label: "Date"
      name: "Date"
      widget: datetime
      date_format: "DD.MM.YYYY" # e.g. 24.12.2021
      hint: 'Date de publication'

thanks