Lucas Posted January 24, 2018 Share Posted January 24, 2018 I have my server properly setup to our timezone America/Costa_Rica and for some reason WHMCS seems to still use the timezone as UTC rather than the current time in my region. Why does it work this way? Is there a way to change this? Thanks! Link to comment Share on other sites More sharing options...
brian! Posted January 24, 2018 Share Posted January 24, 2018 you can set a timezone in the configuration.php file... Link to comment Share on other sites More sharing options...
twhiting9275 Posted January 24, 2018 Share Posted January 24, 2018 No need to redirect the user to another thread to answer their problem, that's just silly Add this to your configuration.php: date_default_timezone_set('America/Chicago'); Of course, change the timezone you're after. You can get the timezone here Link to comment Share on other sites More sharing options...
Lucas Posted January 25, 2018 Author Share Posted January 25, 2018 (edited) Works, thanks! Edited January 25, 2018 by Lucas Link to comment Share on other sites More sharing options...
brian! Posted January 25, 2018 Share Posted January 25, 2018 Tom, 14 hours ago, twhiting9275 said: No need to redirect the user to another thread to answer their problem, that's just silly is it? or does it demonstrate that the question has been asked (and answered) before, and encourage the user to use the search option in the future? sometimes, if you just give the answer, the OP may think they're the first user it has occurred to... linking to another existing thread shows that it is not the case. Link to comment Share on other sites More sharing options...
bootif5 Posted February 8, 2018 Share Posted February 8, 2018 I am getting a warning message that date_default_timezone_set needs to be set, in what ? configuration file ? and how ? also i am getting warning that Crons has not been set. It will not set (i think linked to timezone issue) any help much appreciated. Link to comment Share on other sites More sharing options...
twhiting9275 Posted February 9, 2018 Share Posted February 9, 2018 13 hours ago, bootif5 said: I am getting a warning message that date_default_timezone_set needs to be set, in what ? configuration file ? and how ? also i am getting warning that Crons has not been set. It will not set (i think linked to timezone issue) any help much appreciated. In configuration.php, see the instructions I posted just a few posts up. 1 Link to comment Share on other sites More sharing options...
bootif5 Posted February 9, 2018 Share Posted February 9, 2018 Hello Tom, i did read all posts, which is why i said `which configuration.php, can you say which path ? and where would i add date_default_timezone_set('America/Chicago'); which line ? top / bottom ?? i have only just started 2 months ago, so would appreciate that replies from experienced users be clear and concise. I very much appreciate any good information, because i am stuck. Thank you Link to comment Share on other sites More sharing options...
brian! Posted February 10, 2018 Share Posted February 10, 2018 13 hours ago, bootif5 said: which line ? top / bottom ?? i've always put it at the end... $templates_compiledir = 'templates_c'; $mysql_charset = 'utf8'; date_default_timezone_set('Europe/London'); 1 Link to comment Share on other sites More sharing options...
twhiting9275 Posted February 10, 2018 Share Posted February 10, 2018 (edited) 13 hours ago, bootif5 said: Hello Tom, i did read all posts, which is why i said `which configuration.php, can you say which path ? and where would i add There is only but one configuration file. You can't miss it. Really, you can't. If you do, then you will need to consult with a developer. We're here to help, but we're not going to connect the dots for you Edited February 10, 2018 by twhiting9275 1 Link to comment Share on other sites More sharing options...
brian! Posted February 10, 2018 Share Posted February 10, 2018 https://docs.whmcs.com/Further_Security_Steps#Secure_the_.60configuration.php.60_File it's in the root folder of WHMCS... 1 Link to comment Share on other sites More sharing options...
bootif5 Posted February 10, 2018 Share Posted February 10, 2018 4 hours ago, brian! said: i've always put it at the end... $templates_compiledir = 'templates_c'; $mysql_charset = 'utf8'; date_default_timezone_set('Europe/London'); I still get this same message, and am still unable to set CRONS.............Your PHP environment does not have a valid timezone setting. Please set date.timezone in php.ini to ensure correct date and time processing. If date.timezone is set in php.ini and this warning is still shown, please check the spelling of the timezone identifier...........(this is not just happened, i have been trying for 6 weeks, which is why i ask for specifics, thanks for your input ppl) Link to comment Share on other sites More sharing options...
twhiting9275 Posted February 11, 2018 Share Posted February 11, 2018 If you're getting that still, then it's time to open up a ticket or consult with a developer. Obviously, you're not doing something right, or your system needs some work. We can only do so much from the community end. 1 Link to comment Share on other sites More sharing options...
bootif5 Posted February 11, 2018 Share Posted February 11, 2018 Thanks so much for your help, i have also had some SSL issues too. I am 53, and have become disabled after accident, so trying to learn new career. And only started 3 months ago. Every time i have a problem, i learn so much. So i feel relaxed. Thank you again. Link to comment Share on other sites More sharing options...
Recommended Posts