Time Field Inserting a Blank Space

Created on 17 January 2023, almost 2 years ago
Updated 29 August 2023, about 1 year ago

Problem/Motivation

We have a number of content types that use Date to populate our calendar, etc. After updating to 7.x-2.14 any changes to the time generates the error message of:

The value input for field Date Start date is invalid:
The value 03/16/2023 06:30 pm does not match the expected format.

This happens if we clone from existing content or create new content.

Steps to reproduce

1. Open a content type that uses Date
2. Upon opening the time field displays the time as: 12:30am (no space)
3. As you toggle to the time field the time changes to create a space between the number and the letters: 12:30 am
4. Save the work and you get the error message above.

If you do not make any changes to the time field then there is no error message.

Proposed resolution

Fix the bug.

Remaining tasks

Work out the source of the bug.
Add test coverage.

User interface changes

TBD

API changes

TBD

Data model changes

n/a

🐛 Bug report
Status

Needs work

Version

2.0

Component

User interface

Created by

🇺🇸United States Ne Sar

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024