Question and answer is powered by AnsPress.io
Default time zone Indian time zone is not working in my Codeigniter project.
How could I do that?
<code>date_default_timezone_set(<span class="hljs-string">'Asia/Kolkata'</span>); </code>
Add this line to autoload.php in the application folder
project/application/config/autoload.php
$autoload['time_zone'] = date_default_timezone_set('Asia/Kolkata');
Hope it will be helpful for you.