简体   繁体   中英

timezone issue in amazon aws ec2 linux hosting

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

尝试删除引号:

date.timezone = Asia/Colombo

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM