my project is hosted on shared server and i want to change the timezone to Asia/Kolkata. i have tried setting timezone using htaccess file but failed.
Another good practice is to put it in the CI_Controller class, right in the __construct function:
public function __construct() { date_default_timezone_set( 'Asia/Kolkata' ); self::$instance =& $this; // the rest of the code...