本文介绍了date_default_timezone_get():依靠系统的时区设置是不安全的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能告诉我为什么在安装了最新MAMP的全新格式的Macbook中运行应用程序/控制台时出现此错误?

Can anyone tell me why am I getting this error when running app/console in a brand new formatted macbook with the latest MAMP installed ?

我已经检查了php.ini的路径并标记了date.timezone = "Europe/Athens"

I have checked the path of php.ini and marked out the date.timezone = "Europe/Athens"

还多次重启了MAMP/apache.

Also restarted MAMP/apache several times.

推荐答案

OS X中的默认php.ini位于:

Default php.ini in OS X is located at:

/private/etc/php.ini

无论如何,您都可以告诉CLI php 加载MAMP设置,或使用.

Anyway, you'll can either tell CLI php to load MAMP settings, or use an alias of MAMP command itself.

这篇关于date_default_timezone_get():依靠系统的时区设置是不安全的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-31 02:45