![]() |
Setlocale for Mexico doesn't work - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Setlocale for Mexico doesn't work (/showthread.php?tid=58693) |
Setlocale for Mexico doesn't work - El Forum - 07-08-2013 [eluser]Unknown[/eluser] I'm trying to display in a viewer dates in spanish language, My server is windows 7 so I use this: Code: setlocale(LC_ALL, ''); and for display I'm usin this: Code: echo date("d F Y", strtotime($Contrato->calcular_a_partir)); I expect to obtain "3 de enero 2013" But the result is: "03 January 2013" Does anyone have an idea why? Setlocale for Mexico doesn't work - El Forum - 07-08-2013 [eluser]CroNiX[/eluser] What is the output of Code: echo setlocale(LC_ALL, ''); Did you try explicitly setting the locale in the 2nd parameter instead of using the system default? |