You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The config option date_display_format is handed over to the PHP date() function, which accepts a certain list of format characters. However, when I tried to change this option to 'Y m', the page will throw an exception:
An exception has been thrown during the rendering of a template ("DateTime::__construct(): Failed to parse time string (2016 06) at position 5 (0): Unexpected character").
When using a slightly different string, 'Y-m' (dash between), it works as expected
When using Kanji, it will throw an exception again: '年Y月m'
The expected behavior is that any format character/ string, as outlined in the PHP documentation (see above) can be used for this option and no exception is thrown. At the very least, better documentation is needed to understand what format characters can be used or can't be used (and why).
The text was updated successfully, but these errors were encountered:
The config option
date_display_format
is handed over to the PHPdate()
function, which accepts a certain list of format characters. However, when I tried to change this option to'Y m'
, the page will throw an exception:Which points to
plugins/archives/templates/partials/archives.html.twig
, line 5.Also:
'Y-m'
(dash between), it works as expected'年Y月m'
The expected behavior is that any format character/ string, as outlined in the PHP documentation (see above) can be used for this option and no exception is thrown. At the very least, better documentation is needed to understand what format characters can be used or can't be used (and why).
The text was updated successfully, but these errors were encountered: