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
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 双层网络上信息-疾病传播
  • ¥50 paddlepaddle pinn
  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 请问这个是什么意思?
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services
  • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏
  • ¥15 模糊pid与pid仿真结果几乎一样