“date(): It is not safe to rely on the system's timezone settings…”

前端 未结 24 1933
予麋鹿
予麋鹿 2020-11-22 11:06

I got this error when I requested to update the PHP version from 5.2.17 to PHP 5.3.21 on the server.

24条回答
  •  感情败类
    2020-11-22 11:47

    If you don't have access to the file php.ini, create or edit a .htaccess file in the root of your domain or sub and add this (generated by cpanel):

    
    AddType application/x-httpd-ea-php56 .php .php5 .phtml
    
    
    
    php_value date.timezone "America/New_York"
    
    
    
    php_value date.timezone "America/New_York"
    
    

提交回复
热议问题