Answer the question
In order to leave comments, you need to log in
Locale does not change in PHP 7 on Debian 8. What should I do?
Debian 8 installed. PHP 7.0.1 installedlocale -a
C
C.UTF-8
POSIX
en_GB
en_GB.iso88591
en_GB.iso885915
en_GB.utf8
en_US
en_US.iso88591
en_US.iso885915
en_US.utf8
ru_RU
ru_RU.cp1251
ru_RU.iso88595
ru_RU.koi8r
ru_RU.utf8
russian
php -r "var_dump(setlocale(LC_ALL, 'ru_RU'));var_dump(date('Y M'));"
php -r "var_dump(setlocale(LC_ALL, 'ru_RU.utf8'));var_dump(date('Y M'));"
php -r "var_dump(setlocale(LC_ALL, 'ru_RU.cp1251'));var_dump(date('Y M'));"
php -r "var_dump(setlocale(LC_ALL, 'russian'));var_dump(date('Y M'));"
php -r "var_dump(setlocale(LC_TIME, 'ru_RU'));var_dump(date('Y M'));"
php -r "var_dump(setlocale(LC_TIME, 'ru_RU.utf8'));var_dump(date('Y M'));"
php -r "var_dump(setlocale(LC_TIME, 'ru_RU.cp1251'));var_dump(date('Y M'));"
php -r "var_dump(setlocale(LC_TIME, 'russian'));var_dump(date('Y M'));"
string(8) "2016 Jul"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question