TimeZone in CodeIgnitor 3

Check your current php timezone with : 

echo ini_get('date.timezone'); 

If the result is not your current timezone. You can change in "php.ini" from : 

date.timezone=Europe/Berlin

 to :

date.timezone=Asia/Bangkok

Or if you cannot change your "php.ini", add the following code in the "index.php" file of your application root.

<?php
date_default_timezone_set
('Asia/Bangkok');
?>

Popular posts from this blog

SAP CPI - Loop Process Call with SuccessFactor (oData V2)

Setting IntelliJ IDEA to run Groovy Script

C# - BASE64 to Image