Problem/Motivation

The date_popup field types do not currently support a #date_format where there is no space between hours:minutes and the am/pm indicator.

When you try to save a date, you get the following message:

The value input for field Expiration date for Alert is invalid:
The value 11-17-2021 11:00 AM does not match the expected format.

Steps to reproduce

Proposed resolution

Add a space between hour:minute and am/pm on the date format in site_alert module:

- $format = 'm-d-Y h:iA';
+ $format = 'm-d-Y h:i A';

Remaining tasks

User interface changes

API changes

Data model changes

Comments

jwilson3 created an issue. See original summary.

jwilson3’s picture

Status: Active » Needs review
StatusFileSize
new331 bytes

Patch adds a space between hour:minute and am/pm on the #date_format setting in site_alert module:

- $format = 'm-d-Y h:iA';
+ $format = 'm-d-Y h:i A';

.

jwilson3’s picture

Issue summary: View changes