Tuesday, April 23, 2019

Solution To: PHP TimeZone Error


Error Message:
"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."
Solution:

1. Edit PHP ini file.
1.1. Find timezone entry  ie ;date.timezone
1.2. Uncomment the entry ie delete the symbol ";"
1.3. Add a time zone name ie date.timezone="Asia/Kuala_Lumpur"

No comments:

Post a Comment

Labels