Date/time field in panel 24hrs instead of 12

It must be a friggin mistake I’m making but i don’t get it…
For my blogposts i have a date field called “published” and i want the hours to be in a 24-format instead of 12.

         published:
            label: Published on
            type: date
            display: DD.MM.YYYY
            time: true
              display: hh:mm
              step: 1
            default: now + 1 day   

notation: 24 didn’t change anything.

Do i need to split that into two fields? date and time seperated? Thanks for a hint!


published:
  label: Published on
  type: date
  display: DD.MM.YYYY
  time: true
    display: HH:mm
    step: 1
  default: now + 1 day   
  notation: 24

The following has been changed:

  • Hours notation in uppercase.
  • Notation with 24 hrs. specification

It is not necessary to create two fields for this.

If you want to position both fields next to each other, a wider column is required. width: 1/3 creates a pagination. With a column width of 2/4, both fields are next to each other.

2 Likes

Thank you very much, i was blind, actually the only thing that was wrong was the uppercase HH or in my case the lowercase one. I tried “notation: 24” but nothing changed. The fields are side by side now as well, great. Thank you.

2 Likes