0

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".

Moyed Ansari
  • 8,436
  • 2
  • 36
  • 57
Guliver
  • 3
  • 3

1 Answers1

0

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
Tainmar
  • 136
  • 10
  • 1
    Thanks for quick replay! After locale -a I get en.US.utf8 and sk_SK.utf8, so I have to use setLocale(LC_TIME, 'sk_SK.utf8'). And now it works! – Guliver Nov 24 '16 at 11:41