Skip to content

prod_2026-06-13_2

@jiru jiru tagged this 13 Jun 07:14
After upgrading to PHP 8.2, trying to format a date using an unsupported
locale, such as gos (Gronings) or hoc (Ho), will instantly produce a fatal
"Found unconstructed IntlDateFormatter" error. Because there are so many
places in the code where we format dates, it is not easy to guard against
that error, so here is a more radical way to avoid any error 500 crash.

The drawback is that English dates will be mixed into localized
text, for example "n uur leden, June 12, 2025 aanpaast" in Gronings.
This is already what was happening with PHP 7.4 anyway.
Assets 2
Loading