gossdhosting Posted December 7, 2014 Share Posted December 7, 2014 I have read whmcs docs and created php.ini in public_html First i just wrote date.timezone=Asia/Kolkata and saved file. Then i opened my site but it was showing error saying IonCube not installed something. Then i searched on net for ioncube for php.ini and then added this line to php.ini: zend_extension="/usr/local/IonCube/ioncube_loader_lin_5.4.so" and it worked. The site is back up but time din't change! But then when i created file phpinfo.php and added the code and opened the file it shows Default Timezone Asia/Kolkata. Now How to solve this? phpinfo shows Timezone correct but whmcs doesn't! Any please help? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted December 7, 2014 Share Posted December 7, 2014 you can add the timezone to your whmcs configuration file, just edit the line below for your chosen time zone. date_default_timezone_set('Europe/London'); 3 Quote Link to comment Share on other sites More sharing options...
gossdhosting Posted December 8, 2014 Author Share Posted December 8, 2014 you can add the timezone to your whmcs configuration file, just edit the line below for your chosen time zone. date_default_timezone_set('Europe/London'); Where should i add this line? before php ending tag or after php tag is closed? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted December 8, 2014 Share Posted December 8, 2014 before - for me, it's the last line before the closing tag. 1 Quote Link to comment Share on other sites More sharing options...
gossdhosting Posted December 8, 2014 Author Share Posted December 8, 2014 before - for me, it's the last line before the closing tag. Thank you! It worked! 0 Quote Link to comment Share on other sites More sharing options...
slsdoug Posted October 17, 2015 Share Posted October 17, 2015 before - for me, it's the last line before the closing tag. It worked for me, too. PHP's default was set to UTC, server set to Los Angeles. Doug Smartlab Software 0 Quote Link to comment Share on other sites More sharing options...
Varunprakash Posted November 14, 2021 Share Posted November 14, 2021 Just add below given code in configuration.php file where WHMCS hosted $date_default_timezone_set('Asia/Kolkata'); 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.