This tutorial provides a step-by-step guide for synchronizing server time with WHMCS billing software installation. If you are facing a situation in which your server time is not synchronized to WHMCS, this tutorial will quickly solve this frustration.
WHMCS Uses Incorrect Timezone
In some cases, the WHMCS software inexplicably uses wrong server timezone. Despite having php.ini, the WHMCS software reflects incorrect server time and causes mistimed automations (Daily Crons, Domain Sync, etc).
Synchronize Server Time with WHMCS (Workaround)
When this is the case. edit the configuration.php file in the root WHMCS installation, adding the following text to the end of the file:
date_default_timezone_set('America/Chicago');
Edit the timezone to the appropriate timezone of your server. Save the file. Timezones should be tz format!
Your WHMCS timezone is now synchronized with the server clock.