My projects often show dates and times in a localized format. In my case: Dutch.
For that purpose, I have the following lines of code in my index.php:
Code:
date_default_timezone_set('Europe/Amsterdam');
setlocale(LC_TIME, 'Dutch');
setlocale(LC_ALL, array('Dutch_Netherlands', 'Dutch', 'nl_NL', 'nl', 'nl_NL.UTF-8'));
I'm not sure whether index.php is the right place for that.
Most updates of CI require overwriting the index.php with a new version, which means loss of custom code in that file.
What's the best place to put my localization code?