I am using Apache and php 7 on an Ubuntu System. After installing the german locales and running locale -a
to check the installed locales, I get C, C.UTF-8, de_DE, de_DE@euro, de_DE.iso88591, de_DE.iso885915@euro, de_DE.utf8, deutsch, en_US.utf8, german, POSIX
. I also update the locale using sudo update-locale
. However using the php code
setlocale(LC_ALL,'de_DE');
echo date("F", strtotime("2018-10-10"));
It returns me the English "October", not the German "Oktober". I have no idea what I can do... I also restarted the Apache... but nothing happened.