Smart Date Formatter: Can't get rid of space between Date and Date/time join character

Created on 25 September 2023, 9 months ago
Updated 27 April 2024, about 2 months ago

I want to display the date and time like this: Sat, Nov 11 2023, 7am - 3pm... but it always outputs like this: Sat, Nov 11 2023 , 7am - 3pm.

This issue occurs when the Add time wrapper option is specified, and is currently prominent on the default Smart date format (which has a join value of ', '), however the Compact Smart date format (which has a join value of ' | ') works as designed.

I've confirmed there's no space before the comma where you set the date/time join character and no space after the php date string. It even displays correctly for the preview. The only way to make it not put a space in is to turn off the option for "Add Javascript localization".

I've tried modifying all the available twig templates to try to filter out trailing spaces, but nothing works.

I'm using Drupal 9.

πŸ› Bug report
Status

Needs review

Version

4.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States fallenturtle

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024