Date Time in Code Igniter
<p>I want to get my current system time in computer.</p>

<p>My system time is <code>7:59PM</code> so I tried to get it by this code</p>

<pre><code>  echo date('Y-m-d H:i:s');
</code></pre>

<p>but it gives <code>2016-12-27 12:59:20</code></p>

<p>How can I fix this?</p>

<p>I tried solution that adds application/config.php</p>

<pre><code>application/config.php
&lt;?php

defined('BASEPATH') OR exit('No direct script access allowed');

date_default_timezone_set('Asia/Manila');
</code></pre>

<p>But it didn't work. </p>