dongpin1059 2013-07-16 11:33
浏览 100
已采纳

亚马逊aws ec2 linux主机时区问题

I have recently set up my hosting service in amazon aws, From the moment i have started , it keep gives me an error
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 'UTC' for 'UTC/0.0/no DST' instead in ..
I have read several posts, All of them are advising to change the php.ini file, I have did that , I have restarted the service several times, But it keep coming,

my php.ini

[Date] ; Defines the default timezone used by the date functions

date.timezone = "Asia/Colombo"

date.default_latitude = 31.7667

date.default_longitude = 35.2333

date.sunrise_zenith = 90.583333

date.sunset_zenith = 90.583333

Please help me.

-Regards

  • 写回答

1条回答 默认 最新

  • douzuizhuo0587 2013-07-16 11:37
    关注

    Try removing the quotes:

    date.timezone = Asia/Colombo
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥15 stable diffusion
  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿