RaythMistwalker Posted November 10, 2011 Share Posted November 10, 2011 Notice: Use of undefined constant d - assumed 'd' in /home/rayth/public_html/forum/shout.php on line 11 Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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 'UTC' for 'UTC/0.0/no DST' instead in /home/rayth/public_html/forum/shout.php on line 11 Notice: Use of undefined constant F - assumed 'F' in /home/rayth/public_html/forum/shout.php on line 11 Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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 'UTC' for 'UTC/0.0/no DST' instead in /home/rayth/public_html/forum/shout.php on line 11 Notice: Use of undefined constant Y - assumed 'Y' in /home/rayth/public_html/forum/shout.php on line 11 Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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 'UTC' for 'UTC/0.0/no DST' instead in /home/rayth/public_html/forum/shout.php on line 11 I keep getting this. Line 11: $Date = date(d)." ".date(F)." ".date(Y); Quote Link to comment https://forums.phpfreaks.com/topic/250899-stupid-errors/ Share on other sites More sharing options...
xyph Posted November 10, 2011 Share Posted November 10, 2011 One: You need to specify strings using quotes. Two: date('d F Y'); Quote Link to comment https://forums.phpfreaks.com/topic/250899-stupid-errors/#findComment-1287205 Share on other sites More sharing options...
RaythMistwalker Posted November 10, 2011 Author Share Posted November 10, 2011 Still get Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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 'UTC' for 'UTC/0.0/no DST' instead in /home/rayth/public_html/forum/shout.php on line 11 Quote Link to comment https://forums.phpfreaks.com/topic/250899-stupid-errors/#findComment-1287208 Share on other sites More sharing options...
xyph Posted November 11, 2011 Share Posted November 11, 2011 Have you checked the manual regarding any of the functions mentioned in the error? The error report pretty much tells you how to fix it Quote Link to comment https://forums.phpfreaks.com/topic/250899-stupid-errors/#findComment-1287229 Share on other sites More sharing options...
RaythMistwalker Posted November 11, 2011 Author Share Posted November 11, 2011 Yeah sorry forgot to mark solved. I added the date_default_timezone_set() to my headers file which is present in every page. Quote Link to comment https://forums.phpfreaks.com/topic/250899-stupid-errors/#findComment-1287246 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.