mirror of
https://github.com/rlanvin/php-rrule.git
synced 2025-04-04 21:25:21 +02:00
Fix locale format for i18n files
This commit is contained in:
parent
a5bda44f59
commit
197166a601
@ -2190,7 +2190,7 @@ class RRule implements RRuleInterface
|
||||
if ($opt['use_intl']) {
|
||||
$default_opt['locale'] = \Locale::getDefault();
|
||||
} else {
|
||||
$default_opt['locale'] = setlocale(LC_ALL, 0);
|
||||
$default_opt['locale'] = setlocale(LC_CTYPE, 0);
|
||||
if ($default_opt['locale'] == 'C') {
|
||||
$default_opt['locale'] = 'en';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user