isdoo Posted September 15, 2018 Share Posted September 15, 2018 is there a setting for the time within WHMCS? I can't find one. My server time is BST (currently) and is showing the correct time. WHMCS is showing GMT - so one hour behind. Not noticed this before the upgrade to 7.6, so not sure if it was wrong then as well. Any thoughts? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted September 16, 2018 Share Posted September 16, 2018 Hi @isdoo https://docs.whmcs.com/Changing_Timezone The time under which your WHMCS installation will run is based upon the server clock and the timezone setting in your PHP configuration. Therefore to change the time displayed in WHMCS there are two options: Change the server clock directly Edit the PHP configuration specifying a different timezone. Changing the server clock may not be desirable if clients are hosted on the server and would require root access, so option 2 is the most viable for the majority of users. A number of hosting providers allow the PHP configuration to be changed on an individual directory by creating a php.ini file within the WHMCS directory. In that situation the following line could be added: Quote date.timezone=Europe/London For a full list of the available timezone localities you can use, please refer to http://www.php.net/manual/en/timezones.php Please contact your hosting provider/server admin if you are unsure how to customise the PHP configuration of your server. 0 Quote Link to comment Share on other sites More sharing options...
isdoo Posted September 16, 2018 Author Share Posted September 16, 2018 Thanks. However my server time is correct. I connected via a terminal and ran the date command to double check. It is WHMCS that is one hour behind. Odd. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 16, 2018 Share Posted September 16, 2018 you can set a timezone in the configuration.php file too... that will only affect WHMCS. 1 Quote Link to comment Share on other sites More sharing options...
Mr.X Posted September 27, 2018 Share Posted September 27, 2018 Did you reboot Apache/Web Server after editing the php.ini file? 0 Quote Link to comment Share on other sites More sharing options...
isdoo Posted September 28, 2018 Author Share Posted September 28, 2018 Can't find any time setting locally. Configuration.php doesn't have a setting no local php.ini file If I use terminal into the server and run date it is correct if I use terminal directly into the account it is correct date Fri Sep 28 12:45:34 BST 2018 However WHMCS is running on GMT and not BST so everything is run an hour late. It is not showing the server time or the account time - both of which are the same. It has to be WHMCS - I think! 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 28, 2018 Share Posted September 28, 2018 2 hours ago, isdoo said: It is not showing the server time or the account time - both of which are the same. It has to be WHMCS - I think! this sounds pretty normal to me - and it's why i've got that line above added to my configuration file. in any event, the clocks go back in four weeks time, so BST won't then exist for 5 months after that! 0 Quote Link to comment Share on other sites More sharing options...
Matt D Posted November 8, 2018 Share Posted November 8, 2018 On 9/16/2018 at 3:15 AM, brian! said: you can set a timezone in the configuration.php file too... that will only affect WHMCS. This worked, Thank you! 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.