From 197166a601c1c64de738b49e84d08d04e421bd4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maria=20G=C3=B3rska?= Date: Mon, 29 Apr 2019 18:56:23 +0200 Subject: [PATCH] Fix locale format for i18n files --- src/RRule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RRule.php b/src/RRule.php index c03e8b8..a0ceccd 100755 --- a/src/RRule.php +++ b/src/RRule.php @@ -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'; }