decaporg / decap-cms

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

fix: fix formatInputValue ignoring format #7170

Closed demshy closed 2 months ago

demshy commented 2 months ago

A fix for a bug that was introduced in https://github.com/decaporg/decap-cms/pull/7091

Should solve issue https://github.com/decaporg/decap-cms/issues/7166

format prop was used only if the auto parser returned an invalid date, so dates like 1.4.2024 were parsed as 4.1.2024 as both options are valid dates

Summary

Test plan

Checklist

Please add a x inside each checkbox:

A picture of a cute animal (not mandatory but encouraged)