In case your utility hosted on cPanel Internet hosting server exhibiting incorrect date or timezone and also you shouldn’t have WHM entry of your server then there are two methods to repair this error utilizing your .htacess file inside your cPanel account. We face numerous points due to invalid timezone drawback however the most typical concern is to run a cronjob
Updating Your Timezone From Php.ini
To start with it’s essential Entry your cPanel internet hosting account and in case your web site is hosted with YouStable then you possibly can entry it via https://www.youstable.com/handle.
Use high search field of your cPanel to search out “Choose Php Model” underneath the software program part
YouStable Shared Internet hosting Dashboard
This can redirect you to the Php model choice web page, Right here it’s essential to click on on “Change to PHP Choices” in the suitable aspect of the web page.
You’ll capable of see that there’s a choice date. timezone which lets you change the time zone of your web site or any utility you may have put in in your server, in case you are not aware of your nation timezone discover right here: https://www.php.web/handbook/en/timezones.php
After making your appropriate alternative click on on “APPLY” button save the modifications.
Change Timezone Utilizing .htaccess
Many Internet Internet hosting suppliers don’t assist php.ini modification in these circumstances there’s one other option to change your web site or server date and time by modifying your .htaccess file.
As you already logged in to your cPanel, discover your apache configuration file underneath File Handle >> Public_html
Observe: You will have to vary settings as a result of by default .recordsdata are hidden for some safety causes
UNHIDE .HTACESS FILE IN FILE
Now proper click on on the file and select “EDIT” choice to switch the configuration
You could discover numerous config codes on this file all it’s important to do is scroll all the way down to the backside of the web page and paste this code
# Alter default time zone
SetEnv TZ America/Washington
Now to make modifications “SAVE” the file and reload your web page.