Review main Merged

78120[FEATURE] Introduce php-intl based date&time formatting

Benni Mack CR +2 V +2 Hard +493 −3 updated 03/17/23, 14:18

Commit message

A new stdWrap "formattedDate" feature is added,
which uses the ICU-based pattern formatting
see https://unicode-org.github.io/icu/userguide/format_parse/datetime/#datetime-format-syntax

In addition, the DateViewHelper (<f:format.date>)
now allows to set a `pattern` value,
which - if given - also uses the ICU-based pattern
formatting.

All of the features are based on the given Locale,
so no need for using the system-wide "setlocale"
functionality is needed anymore, as the tests show.

The ICU-based pattern allows for much more flexible
and fine-grained date formatting, such as

* Quarter of the year (QQQQ)
* Day of week in month (F)
* Milliseconds in day (A)

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 7