Inconsistent and unlocalized use of time / date format

Created on 2 July 2020, over 4 years ago
Updated 29 October 2024, 2 months ago

I set it up as a Spanish first site. In Date and time formats of /admin/config/regional/date-time I supposedly find the formats to be used, I mean for what other reason does that page exist? I see however none of these used in /promotion/
/edit, /promotion/add or /admin/commerce/promotions

As example I see in the first two forms 07/06/2020 12:00:00 AM which in Spain can be very confusing what it actually means.
Inconsistently in the promotion listing table of the last one I see: Jul 6th 2020 00:00:00

IMHO the expected format that comes closest to the one presently used would be "short default date" of the system Date and time formats, machine name 'short', which is also configurable in Drupal. In Spanish it displays 06/07/2020 - 00:00

As a work around I would personally prefer the fixed 'html_date' and 'html_time' less cultural dependent, more mathematical (highest weight to lowest weight notation): YYYY-MM-DD HH:MM:SS

Likely the most difficult is to let the date time forms follow the configurable 'short' pattern. I would find it technically acceptable when the forms follow the YYYY-MM-DD HH:MM:SS pattern while the display in the promotion listing could follow the culturally correct 'short' format as verification.

Feature request
Status

Postponed: needs info

Version

3.0

Component

Promotions

Created by

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