Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Timezone and more problems with Cakephp 1.3 and PHP 5.3.2

    • 0
    • 1
    • 1
    • 1
    • 0
    • 0
    • 0
    • 0
    • 91
    Comment on it

    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)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: