Guliver Guliver - 1 year ago 92
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 Source

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
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download