Guliver Guliver - 11 days ago 5
PHP Question

setlocale on cloudways server

I deploy my laravel project on Cloudways server. Everything is ok, except date localisation. I use

setLocale(LC_TIME, 'sk_SK')


in my aplication but it doesn't work. After contacting Live chat on Cloudways their response was: "I would like to update you that on our platform on the server level we cannot make any changes because we have our customized server stack".

Answer

Have you installed your locale sk_SK on the server ? Are you able to do that ? If you can check this link :Carbon API Localization

Here is what you should type :

sudo locale-gen sk_SK.UTF-8
sudo dpkg-reconfigure locales
Comments