title: How to get local timezone in PHP?
body: <p>I'm using the <code>date("D, m/d/Y h:i:s A T")</code> function call to get current date time but returned time is different to the time I get when I make date in linux bash command (local time is in <strong>CST</strong> and php date function returns time in <strong>UTC</strong>). I've tried using <code>$timezone = @system("date +%Z",$retval);</code> to get timezone in an attempt to set local timezone using <code>date_default_timezone_set()</code> function. But <strong>CST</strong> seems not a valid timezone_identifier.</p>
  
  <p>In short, I just need to get the same date and time as local datetime.</p>