qTranslate-XT (eXTended) - reviving qTranslate-X multilingual plugin for WordPress. A new community-driven plugin soon. Built-in modules for WooCommerce, ACF, slugs and others.
GNU General Public License v2.0
554
stars
105
forks
source link
Replace `strftime` with `IntlDateFormatter` for PHP8.1 #1228
strftime is deprecated in PHP8.1 and should not be used anymore. Add a locale-formatted strftime using IntlDateFormatter. This patch is a temporary workaround for immediate PHP8.1 support.
The strftime format should be abandonned completely in QTX so it becomes legacy from now. Mark all strftime methods as deprecated for PHPDoc but not for the PHP code yet, until a migration is done.
Attention: QTX uses an extended version of strftime to support extra format tags such as %q that are non-standard in strftime.
strftime
is deprecated in PHP8.1 and should not be used anymore. Add a locale-formatted strftime usingIntlDateFormatter
. This patch is a temporary workaround for immediate PHP8.1 support.The
strftime
format should be abandonned completely in QTX so it becomes legacy from now. Mark all strftime methods as deprecated for PHPDoc but not for the PHP code yet, until a migration is done.Attention: QTX uses an extended version of strftime to support extra format tags such as
%q
that are non-standard in strftime.