getgrav/grav

ISO Date for Short Display Date and Long Display Date

Open

#2,283 opened on Dec 6, 2018

View on GitHub
 (2 comments) (0 reactions) (0 assignees)PHP (1,409 forks)batch import
enhancementhelp wanted

Repository metrics

Stars
 (15,491 stars)
PR merge metrics
 (Avg merge 4d 13h) (8 merged PRs in 30d)

Description

The drop-down list in Admin > Configuration > System for the "Short Display Date" and "Long Display Date" are rather limited. Because they are in a drop-down list there is no option to include an alternate.

Preferably, this drop-down could be replaced with a text field which would accept any valid PHP Date Format: https://secure.php.net/manual/en/datetime.formats.date.php

If not, or in the meantime, make available an ISO Short and ISO Long display date, such as:

YYYY-MM-DD YYYY-MM-DD HH:MM

See also: https://en.wikipedia.org/wiki/ISO_8601

Contributor guide