Putting this as the first line of your php file will fix the problem. Or you can configure your php.ini as per php's manual (see below)
CODE
date_default_timezone_set('Asia/Kuala_Lumpur');
You can set to your time zone.
If you refer to php's manual
http://my.php.net/date_default_timezone_setit says:
QUOTE
Note: Since PHP 5.1.0 (when the date/time functions were rewritten), every call to a date/time function will generate a E_NOTICE if the timezone isn't valid, and/or a E_STRICT message if using the system settings or the TZ environment variable.
Instead of using this function to set the default timezone in your script, you can also use the INI setting date.timezone to set the default timezone.
So by configuring your php.ini, you can also solve this problem.
Comment/Reply (w/o sign-up)