Íá ãÔßáÉ ÇáÊæÞíÊ ÎØà 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
Íá ÇáãÔßáÉ ãä ÎáÇá ÇáÓíÑÝÑ
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
- Click on “Server Time” option as shown in screenshot below
- Select the appropriate timezone that you want on your server from drop-down list shown below
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
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.
Select Editor Mode Tab
Tap on “Select a location” option
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.
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://whmcs.community/topic/282981...hmcs-uses-utc/
https://whmcs.community/topic/190661...oice-template/
https://hostpapasupport.com/set-timezone-php-php-ini/
ÇáãÝÖáÇÊ