brandom9 Posted February 16, 2012 Share Posted February 16, 2012 Hello, After update a server to a latest software (thru Custombuild/Directadmin), there is a problem with the date/time displayed. The date/time in WHMCS are not the same as the date/time displayed in the server. In our server shows : [root@server ~]# dateFri Feb 17 04:49:58 MYT 2012 This is what shown in WHMCS: Thursday, 16 February 2012, 20:50 I've tried to reboot he server, but still failed to fix it. Pls help me. Thanks 0 Quote Link to comment Share on other sites More sharing options...
bear Posted February 16, 2012 Share Posted February 16, 2012 Under general settings tab, localisation, what is the "Default Country" set to? 0 Quote Link to comment Share on other sites More sharing options...
brandom9 Posted February 16, 2012 Author Share Posted February 16, 2012 Malaysia = MYT. Even if I change to different country, the date/time displayed are still the same. No difference. Thanks 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted February 16, 2012 Share Posted February 16, 2012 Is the server actually a VPS? I've seen issues like this with VPS servers when you try to change the timezone within the node that is different than the host box's time zone. 0 Quote Link to comment Share on other sites More sharing options...
brandom9 Posted February 16, 2012 Author Share Posted February 16, 2012 No, this is not VPS. It's a dedicated server meant only for my company website i.e for Billing. It uses Centos5 with DA. Thanks 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted February 16, 2012 Share Posted February 16, 2012 What do you have the system time (CMOS) set to? I wonder if WHMCS is picking that up rather than the OS time. 0 Quote Link to comment Share on other sites More sharing options...
web2008 Posted February 16, 2012 Share Posted February 16, 2012 Try to add the following line in configuration.php date_default_timezone_set('Europe/Oslo'); You can see the TimeZones at the following URL: http://php.net/manual/en/timezones.php 0 Quote Link to comment Share on other sites More sharing options...
brandom9 Posted February 16, 2012 Author Share Posted February 16, 2012 What do you have the system time (CMOS) set to? I wonder if WHMCS is picking that up rather than the OS time. I think, the setting is correct. But I cannot re-check now. Try to add the following line in configuration.php date_default_timezone_set('Europe/Oslo'); You can see the TimeZones at the following URL: http://php.net/manual/en/timezones.php Your guidelines are working. It's OK now. Many thanks for you help Thanks 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.