I'm trying to use php setlocale() for dates. Setting it like:
setlocale(LC_TIME, 'pl_utf8','Polish','pl.UTF-8','Polish_Poland.1250','WINDOWS-1250');
works fine, but if I use variable which stores the second parameter like:
setlocale(LC_TIME, $locale);
it does not work.
Now var $locale contains the exact string 'pl_utf8','Polish','pl.UTF-8','Polish_Poland.1250','WINDOWS-1250'
which is being pulled from database.
Why isn't working?