Welcome Guest, Not a member yet? Register   Sign In
Setlocale for Mexico doesn't work
#1

[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?
#2

[eluser]CroNiX[/eluser]
What is the output of
Code:
echo setlocale(LC_ALL, '');
which should show the servers default language?

Did you try explicitly setting the locale in the 2nd parameter instead of using the system default?




Theme © iAndrew 2016 - Forum software by © MyBB