decap-cms icon indicating copy to clipboard operation
decap-cms copied to clipboard

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

Open sverrejb opened this issue 1 year ago • 1 comments

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

  • Config a field using the datetime widget.
  • Set time_format: false
  • No apparent effect?

Expected behavior

  • Time-picker should be hidden?

Screenshots

image

Applicable Versions:

  • Decap CMS version: 3.0.0
  • Git provider: GitHub
  • OS: Windows, Linux, MacOS
  • Browser version: Chrome, 121, Firefox 122.0

CMS configuration

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

Additional context

sverrejb avatar Feb 05 '24 18:02 sverrejb

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

sverrejb avatar Feb 05 '24 18:02 sverrejb

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?

mikestopcontinues avatar Mar 05 '24 07:03 mikestopcontinues

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 avatar Mar 14 '24 00:03 filipesperandio

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

filipesperandio avatar Mar 14 '24 00:03 filipesperandio

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

martinjagodic avatar Mar 29 '24 14:03 martinjagodic

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

sverrejb avatar Mar 31 '24 18:03 sverrejb