[eluser]John_Betong[/eluser]
[quote author="SomeFunkyDude" date="1254713933"]that's what I thought, I tried changing it but was still getting the error.[/quote]
Please note that this is not an error, it is a warning.
Here is the setting which works on my computer, I have the code in the first couple of lines of my index.php
AFTER declaring the error_reporting level.
Code:
// correct place to prevent warnings from showing
error_reporting(E_ALL | E_NOTICE | E_STRICT);
ini_set('display_errors', 'On');
//set yoour timezone
date_default_timezone_set('Asia/Krasnoyarsk'); // Bangkok time
// incorrect place to call error_reporting(...)
error_reporting(E_ALL | E_NOTICE | E_STRICT);
Either reduce your error_reporting(...) to not show warnings or ensure date_default_timezone_set(...) is called after error_level(...).
edit: logic error, changed before to after