1. Find you php.ini files
2. to see your php.ini files- you need to pass in the INFO_GENERAL parameters as without the parameters you will get the same error as phpinfo() will trigger the timezone issue settings
3. Edit your php.ini files and go to
; Defines the default timezone used by the date functions ; http://php.net/date.timezone ;date.timezone =
Change to what ever your time zone is. For a list of php timezone please visit http://id1.php.net/manual/en/timezones.asia.php
; Defines the default timezone used by the date functions ; http://php.net/date.timezone date.timezone = "Asia/Dubai"
Ps: don't forget to delete the ";"
4. Restart your apache server. if you are using mac use "sudo apachectl restart"
date(): 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 'Asia/Dubai' for 'WIT/7.0/no DST' instead
No comments:
Post a Comment