Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wp-expand-tabs-free domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/websitedevait/public_html/wp-includes/functions.php on line 6131
How do I set a default time zone in PHP? | Advanced Internet Technologies

There are times where you may receive errors in PHP about not having a default time zone. That is because you may not have a default time zone set in your PHP code, or in your php.ini. To fix this globally in your php.ini file, follow the steps below.

  1. Open your php.ini file using the file editor, or via FTP. The location of the php.ini file can vary based upon installation, but normally you can find it in /usr/local/bin or /usr/local.
  2. Add the following line of code to top of your php.ini filedate.timezone = America/New_York
  3. Replace “America/New_York” with the timezone that corresponds to the time you want to display. There are preset timezones that you’ll need to use. You can consult php.net for the specific time zone for you.
  4. Once you have entered the desired timezone, save the file.
  5. Restart your httpd/Apache services via the cPanel or SMT interface
  6. Test your results using a phpinfo script, or other configuration