Rise Company
10-06-2020, 11:56
حل مشكلة التوقيت خطأ whmcs time wrong
Incorrect time displayed (WHMCS uses UTC?)
Cron running in wrong time... Setting WHMCS system time
server time is correct but my WHMCS time is wrong
https://www.rise.company/upload/uploads/159178474140171.jpg
حل المشكلة من خلال السيرفر
Add this to your configuration.php:
date_default_timezone_set('America/Chicago');
قم باستبدال
America/Chicago
بالخاص بدولتك من الرابط التالي
https://www.php.net/manual/en/timezones.africa.php
https://www.php.net/manual/en/timezones.php
-------------------------------------------------------------------
حل المشكلة من خلال السيرفر | تغيير ساعة السيرفر WHM
------------------------------------------------------------------
This will change TimeZone for all cPanel users and all websites hosted on it.
Login to WHM using the credentials
Look for “Server Configuration” Section or Search in search bar on left pane and tap on it
https://www.rise.company/forum/images/imported/2020/06/14.png
Click on “Server Time” option as shown in screenshot below
https://www.rise.company/forum/images/imported/2020/06/15.png
Select the appropriate timezone that you want on your server from drop-down list shown below
https://www.rise.company/forum/images/imported/2020/06/16.png
Click on the “Change TimeZone” button.
Note- If you doubt that time shown is incorrect then use “Sync Time with Time Server” option to fix it.
If WHM asks to reboot the server then please perform a server reboot from WHM itself.
اذا كان التوقيت مضبوط على السيرفر طبق التالي
-------------------------------------------------------------------
حل المشكلة من خلال السيرفر | تغيير ساعة PHP
-------------------------------------------------------------------
قم بتعديل نطاق الدولة من خلال php حيث هو المعتمد داخل whmcs وليس Server نفسه
فقد تجد ان السيرفر مضبوط الساعة به ولكن whmcs لا ويرجع ذلك الى date.timezone
الموجود داخل php وهنا اما يعمم من خلال whm على الجميع او يخصص من خلال cpanel
https://www.rise.company/upload/uploads/15917831642881.png
Change TimeZone for Particular Website or All Websites in PHP INI Manager
Login to your cPanel Account
Search or locate “MultiPHP INI Editor” and open it.
https://www.rise.company/forum/images/imported/2020/06/17.png
Select Editor Mode Tab
https://www.rise.company/forum/images/imported/2020/06/18.png
Tap on “Select a location” option
https://www.rise.company/forum/images/imported/2020/06/19.png
Here you will find “Home Directory” and List on domains in your cPanel account.
Making Changes in Home Directory will change for all the domains while making changes for the domain will change only for that domain and rest are unaffected and will follow Global TimeZone Settings.
We will select domain some-domain.com domain from list.
Text Editor Opens for us on the screen. We will type below for IST TimeZone.date.timezone = “Asia/Kolkata”
You can find list of timezones here (http://www.php.net/manual/en/timezones.php).
https://www.rise.company/forum/images/imported/2020/06/20.png
Press save button.
Create test.php inside your domain directory and add following code and save file.<?php
// Show all information, defaults to INFO_ALL
phpinfo();
?>
Now open browser and open some-domain.com/test.php and you can see as following if steps followed correctly.
https://www.rise.company/forum/images/imported/2020/06/21.png
المرجع:
https://whmcs.community/topic/282981-incorrect-time-displayed-whmcs-uses-utc/
https://whmcs.community/topic/190661-changing-invoice-template/
https://hostpapasupport.com/set-timezone-php-php-ini/
Incorrect time displayed (WHMCS uses UTC?)
Cron running in wrong time... Setting WHMCS system time
server time is correct but my WHMCS time is wrong
https://www.rise.company/upload/uploads/159178474140171.jpg
حل المشكلة من خلال السيرفر
Add this to your configuration.php:
date_default_timezone_set('America/Chicago');
قم باستبدال
America/Chicago
بالخاص بدولتك من الرابط التالي
https://www.php.net/manual/en/timezones.africa.php
https://www.php.net/manual/en/timezones.php
-------------------------------------------------------------------
حل المشكلة من خلال السيرفر | تغيير ساعة السيرفر WHM
------------------------------------------------------------------
This will change TimeZone for all cPanel users and all websites hosted on it.
Login to WHM using the credentials
Look for “Server Configuration” Section or Search in search bar on left pane and tap on it
https://www.rise.company/forum/images/imported/2020/06/14.png
Click on “Server Time” option as shown in screenshot below
https://www.rise.company/forum/images/imported/2020/06/15.png
Select the appropriate timezone that you want on your server from drop-down list shown below
https://www.rise.company/forum/images/imported/2020/06/16.png
Click on the “Change TimeZone” button.
Note- If you doubt that time shown is incorrect then use “Sync Time with Time Server” option to fix it.
If WHM asks to reboot the server then please perform a server reboot from WHM itself.
اذا كان التوقيت مضبوط على السيرفر طبق التالي
-------------------------------------------------------------------
حل المشكلة من خلال السيرفر | تغيير ساعة PHP
-------------------------------------------------------------------
قم بتعديل نطاق الدولة من خلال php حيث هو المعتمد داخل whmcs وليس Server نفسه
فقد تجد ان السيرفر مضبوط الساعة به ولكن whmcs لا ويرجع ذلك الى date.timezone
الموجود داخل php وهنا اما يعمم من خلال whm على الجميع او يخصص من خلال cpanel
https://www.rise.company/upload/uploads/15917831642881.png
Change TimeZone for Particular Website or All Websites in PHP INI Manager
Login to your cPanel Account
Search or locate “MultiPHP INI Editor” and open it.
https://www.rise.company/forum/images/imported/2020/06/17.png
Select Editor Mode Tab
https://www.rise.company/forum/images/imported/2020/06/18.png
Tap on “Select a location” option
https://www.rise.company/forum/images/imported/2020/06/19.png
Here you will find “Home Directory” and List on domains in your cPanel account.
Making Changes in Home Directory will change for all the domains while making changes for the domain will change only for that domain and rest are unaffected and will follow Global TimeZone Settings.
We will select domain some-domain.com domain from list.
Text Editor Opens for us on the screen. We will type below for IST TimeZone.date.timezone = “Asia/Kolkata”
You can find list of timezones here (http://www.php.net/manual/en/timezones.php).
https://www.rise.company/forum/images/imported/2020/06/20.png
Press save button.
Create test.php inside your domain directory and add following code and save file.<?php
// Show all information, defaults to INFO_ALL
phpinfo();
?>
Now open browser and open some-domain.com/test.php and you can see as following if steps followed correctly.
https://www.rise.company/forum/images/imported/2020/06/21.png
المرجع:
https://whmcs.community/topic/282981-incorrect-time-displayed-whmcs-uses-utc/
https://whmcs.community/topic/190661-changing-invoice-template/
https://hostpapasupport.com/set-timezone-php-php-ini/