相关疑难解决方法(0)

Symfony2和date_default_timezone_get() - 依赖系统的时区设置是不安全的

我有一个Symfony2项目.我今天更新了我的PHP到5.5.7,从那以后,我得到了

Warning: date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in...
Run Code Online (Sandbox Code Playgroud)

我在php.ini中设置了默认时区

[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = …
Run Code Online (Sandbox Code Playgroud)

php timezone symfony

77
推荐指数
3
解决办法
12万
查看次数

标签 统计

php ×1

symfony ×1

timezone ×1