Hello Readers,
We have heard this Timezone Warning many times whenever we build Cakephp project from scratch.
The warning message is as below:
Warning: strtotime() [http://php.net/function.strtotime]: 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.
So in order to remove this Warning we need to uncomment this one line code which you can find in /app/config/core.php
date_default_timezone_set('UTC');
You can replace UTC as per your current timezone.
0 Comment(s)