strftime()的问题,新搭建的环境

刚刚搭建好的lamp结果运行程序的时候出现了下面的问题


解决的方法是:在php.ini中加上 date.timezone = "Asia/Shanghai",问题就解决了


strftime(): 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.












你可能感兴趣的:(php,环境配置,技术)