https://git.drupalcode.org/project/xdate/-/blob/c4c9995862a16869c117ce21...

Problem/Motivation

Presently accuracy / granularity of the field config is exposed only as a set of checkboxes for all possible accuracy and combinations there of. Most will not be in common use. The HTML 5 widget wouldn't support them. It does make sense that users might want to store microseconds, or have both second and minute accuracy, or maybe even just store year month. But these are advanced options and might need additional widgets.

Proposed resolution

Create a user friendly version of this. Something like:

Radios

  • Date only DateTimePart::DAY
  • Date and Time.
    With checkboxes:
    • Time optional, allow all day events.
    • Time includes seconds.

    Representing combinations: DateTimePart::MINUTE or DateTimePart::SECOND with or without DateTimePart::DAY

  • Advanced
    description include some combinations or levels will not work with an HTML5 form field. Then offer full list

The first options just selecting or similar the advanced combinations.

Comments

ekes created an issue.