Ever since I started using WHMCS (Web Host Manager Complete Solution), my dilemma is that it uses the server’s timezone as its default. If a server is based outside of my local timezone, I have no choice but to adjust all of the transaction dates every time there is an entry at the WHMCS.
Now, here’s a trick to dictate WHMCS to use your local timezone:
- Open the file configuration.php for editing.
- Add the line
date_default_timezone_set('Asia/Manila');if you are from Manila.
The list of timezones can be found at http://www.php.net/manual/en/timezones.php
Category: Tips & Tricks
Anil says:
Thanks for this, very helpful for Me
ramadoni says:
thank you very much, it’s very useful for me… =)
whmcs themes says:
Good post and nice design, is this a regular template?.
oim says:
Thank’s! Great :)
Kowloon Hosting says:
That was very useful, we were looking for this info to adjust our timezone to Hong Kong
Topher says:
This worked great, thanks. Is there any way to change the time format to 12hr vs 24hr? I think it looks kind of dumb to have 22:30PM when ditching the PM is the whole point of 24hr