06 2017 档案
摘要:自PHP5.0开始,用PHP获取系统时间时,时间比当前时间少8个小时。原因是PHP.ini中没有设置timezone时,PHP是使用的UTC时间,所以在中国时间要少8小时。 解决办法: 1.在PHP.ini文件中修改设置。 [Date] ; Defines the default timezone used by the date functions dat...
阅读全文
摘要:namespace App\Providers; use Illuminate\Support\ServiceProvider; use Validator; class AppServiceProvider extends ServiceProvider { /** * Bootstrap any application services. * ...
阅读全文