2011-06-16, 04:32:51
It is the solution: thanks mvlcek.
In Apache windows server, only with 'esp' works good.
But in apache linux server, it doesn´t work.
I will investigate...
Hi yojoe; i use strftime...
Regards.
Quote:It seems that it depends on the operating system, which locales are available and how they are named.
If you have shell access, you can find out with locale -a.
Otherwise you can just try: use a string with all possible names separated by comma as in the example for german, like 'es_ES,es,esp,spa' (I'm guessing here - you may find possible names with google).
In Apache windows server, only with 'esp' works good.
Code:
setlocale(LC_TIME, preg_split('/\s*,\s*/','esp'));
But in apache linux server, it doesn´t work.
I will investigate...
Hi yojoe; i use strftime...
Regards.