[eluser]MVUG[/eluser]
Hi guys,
I've got a problem with my CI 1.7.2... I use the date helper to format a date (mdate() function), but is gets formatted in English notation.
When I do
setlocale(LC_TIME, 'nl_NL'); in my code it still isn't formatted right (in a view), but when I do this (in a controller or view), it works:
Code:
/* Set locale to Dutch */
setlocale(LC_ALL, 'nl_NL');
/* Output: vrijdag 22 december 1978 */
echo strftime("%A %e %B %Y", mktime(0, 0, 0, 12, 22, 1978));
it works...
Can anybody help? Is there a specific place to put the setlocale?