
Originally Posted by
jpda
ZC158a
ZCA v3.6.5, v3.7.0
PHP 8.2
The function zca_get_translated_month_name() selects $zcDate->output('%B') and not strftime('%B') because I'm running zc1.5.8a.
$zcDate shows the name of the month in English, strftime() uses the current 'locale'.
How could I fix that?
TIA,
jpda
Actually, it's not using strftime since you're running PHP 8.2 ... and that function's deprecated/removed.
What language is the site using and what's that main language file's (e.g. lang.english.php for English) $locales set as?
The setting for the as-distributed English language file is
PHP Code:
global $locales;
$locales = ['en_US', 'en_US.utf8', 'en', 'English_United States.1252'];
@setlocale(LC_TIME, $locales);
Bookmarks