"Date and time" datefield schema should use format "date-time"

Created on 14 May 2025, 6 days ago

Problem/Motivation

This is a follow-up to #3246251: Change format "utc-millisec" to "date-time" β†’ . The module currently adds a format of date to datetime field schemas, regardless of whether the field is configured as "Date and time" or "Date only". The date format should only apply for "Date only". "Date and time" should use a format of date-time.

Steps to reproduce

Add two datetime fields to a node, one set to "Date and time" and one set to "Date only". View the JSON Schema for the node type and observe that both have a format of date. The "Date and time" field should have a format of date-time.

Proposed resolution

TBD.

Remaining tasks

  1. Add tests to show the issue.
  2. Fix the issue.
πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States m.stenta

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024