1
0
mirror of https://github.com/rlanvin/php-rrule.git synced 2025-04-08 23:53:48 +02:00

Fix locale format for i18n files

This commit is contained in:
Maria Górska 2019-04-29 18:56:23 +02:00 committed by Rémi Lanvin
parent a5bda44f59
commit 197166a601

View File

@ -2190,7 +2190,7 @@ class RRule implements RRuleInterface
if ($opt['use_intl']) { if ($opt['use_intl']) {
$default_opt['locale'] = \Locale::getDefault(); $default_opt['locale'] = \Locale::getDefault();
} else { } else {
$default_opt['locale'] = setlocale(LC_ALL, 0); $default_opt['locale'] = setlocale(LC_CTYPE, 0);
if ($default_opt['locale'] == 'C') { if ($default_opt['locale'] == 'C') {
$default_opt['locale'] = 'en'; $default_opt['locale'] = 'en';
} }