Function date_default_timezone_set() is not available

前端 未结 3 590
情深已故
情深已故 2020-12-10 14:14

As the title says, can anybody explain why the code

ini_set( \'date.timezone\', \'Europe/Athens\' );

works but

date_default         


        
3条回答
  •  无人及你
    2020-12-10 14:47

    You must be using an old version of PHP.

    date_default_timezone_set is for PHP 5.1.2 and above.
    

    Try php -v and check your PHP version.

提交回复
热议问题