Home
Support Forums

Unable to correctly set date and time using the Datetime Widget

When clicking into the datetime widget to set an exact date and time in the CMS backend, numbers skip and it’s almost impossible to set an exact date/time. Is this currently happening for all users or maybe my config is causing this? Any help would be greatly appreciated!

Here’s a video of what is happening when I click to set the times. You’ll see the hours jump several hours when just increasing the minute column by 1.

site: https://xenodochial-chandrasekhar-7a3f50.netlify.app/

- name: "radio"
    label: "Radio"
    folder: "content/radio"
    create: true
    identifier_field: slug
    slug: '{{slug}}'
    fields:
      - {label: "Title", name: "title", widget: "string"}
      - {label: "Custom Slug", name: "customslug", widget: "string", required: true, pattern: ['^[a-z0-9]+(?:-[a-z0-9]+)*$','A slug can have no spaces or special characters']}
      - {label: 'SEO Description', name: 'seodescription', widget: 'text', pattern: ['.{50,160}', "50-160 characters"] }
      - {label: "Publish Date", name: "date", widget: "datetime"}
      - {label: "Featured Image", name: "thumbnail", widget: "image"}
      - {label: "Author", name: "author", widget: "relation", collection: "blogauthors", searchFields: ["title"], valueField: "title", displayFields: ["title"], required: false}
      - {label: "Start time",  name: "start", widget: "datetime", default: "", date_format: "DD.MM.YYYY", time_format: "HH:mm", format: 'YYYY-MM-DD HH:mm', picker_utc: true}
      - {label: "End time",  name: "end", widget: "datetime", default: "", date_format: "DD.MM.YYYY", time_format: "HH:mm", format: 'YYYY-MM-DD HH:mm', picker_utc: true}
      - {label: "Body", name: "body", widget: "markdown"}
      - {label: "Audio Archive Link", name: "audioArchive", widget: "string"}```

My formatting was way off. Found a solution from helpful human on discord.
ZZ needed to be added to the format.

- {label: "End time",  name: "end", widget: "datetime", default: "", date_format: "MM/DD/YYYY", format: "MM-DD-YYYY HH:mm ZZ", picker_utc: false}```
1 Like