data-driven-forms / react-forms

React library for rendering forms.
https://data-driven-forms.org/
Apache License 2.0
302 stars 87 forks source link

[Help] - Need time picker with 24 hrs format #1463

Closed anjalikalsariya closed 5 months ago

anjalikalsariya commented 5 months ago

Description : We are using the ant-component-mapper and we have time picker fields in form schema. In form, time picker showing well with 12hr am pm format. We need format 24hr with no am pm. Ant lib providing that format see the image 2. But I don't know how we can do by the schema ? like which property we can pass in schema for getting 24hr time picker ? Anyone , Can you please help me ?

My schema timepicker field

 {
      "name": "DEBUTOP",
      "label": "Uhrzeit des Beginns des Eingriffes",
      "className": "form-item-left",
      "component": "time-picker"
    },

Current behaviour (Image 1)

image

Require behaviour (Image 2)

image