decaporg / decap-cms

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

Trying to hide time-picker from datetime-widget with "time_format: false" does not work. #7090

Closed sverrejb closed 3 months ago

sverrejb commented 5 months ago

Describe the bug I have a field where I don't care about time, only date, and would like to hide the time picker in the widget for the users. As per the documentation I have tried setting time_format: false, but this does not seem to work.

To Reproduce

Expected behavior

Screenshots

image

Applicable Versions:

CMS configuration

https://raw.githubusercontent.com/Trondheim-Sykkelkjokken/website/main/static/admin/config.yml

Additional context

sverrejb commented 5 months ago

I tried it with Netlify CMS 2.0 and that worked as expected, so this seems to be some kind of regression.

mikestopcontinues commented 4 months ago

This is a regression. Somewhere between 3.2.8 and 3.3.2. date_format doesn't work at all now. Before updating the logic to do anything new, shouldn't it be reverted to its previous working state?

filipesperandio commented 3 months ago

Facing the same issue. @mikestopcontinues Those versions don't yet exist, maybe it is typo, do you know which version has it working? UPDATE: Oh! you meant the decap-cms-code version?

filipesperandio commented 3 months ago

Got a combo that seems to be working: decap-cms 3.0.8 decap-cms-core 3.2.4 https://unpkg.com/decap-cms@3.0.8/dist/decap-cms.js

martinjagodic commented 3 months ago

A fix is released in v3.1.6 (#7091). @sverrejb @filipesperandio @mikestopcontinues can you please test if it works now?

sverrejb commented 3 months ago

From what I can tell, it works as intended now. Thanks for fixing it, and letting me know! 😄