This project is read-only.

Warning: date() []: strange alert with comments


Hello, this warning started showing up with the comments. Can you help? thanks.

Warning: date() []: 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. We selected 'America/New_York' for 'EST/-5.0/no DST' instead in /home/lucief/public_html/comments_display.php on line 15


boplinger wrote Feb 11, 2015 at 9:42 PM

Here's the page it refers



//show all comments, with user, date, etc.//
print "<h2>Your Stories and Thoughts</h2>
<table><tr><td align='center' valign='top'>"; $pullComments = mysql_query("SELECT * FROM Comments WHERE muzzle='' ORDER BY commentID DESC", $tdx); for ($xcs = 0; $xcs < mysql_num_rows($pullComments); $xcs++) { $cs = mysql_fetch_assoc($pullComments); print "<p class='quote'><em>&quot;$cs[comment]&quot;</em><br /> by "; if ($cs[name]) {print "<strong>-$cs[name]</strong>";} else {print "<em>Anonymous</em>";} print " on <strong>" . date('m/d/y', $cs[dateTime]) . "</strong></p>"; } print "</td><td align='center' valign='top'> <form action='' method='post'> <h3>Share your own!</h3>"; if ( $captcha_error ) { print '<p><b style="color:#860400">The captcha you entered was incorrect, please try again!</b></p>'; } print " <p><textarea name='comment' rows='4' cols='24'>" . htmlspecialchars(@$post_comment) . "</textarea></p> <p><label for='name'>Your Name (optional):</label><br /> <input type='text' name='name' maxlength='120' id='name' value='" . htmlspecialchars(@$post_name) . "'/><input type='text' name='email' id='email' style='width: 2px; background-color: #E7DBBC; border: none;' /></p> " . recaptcha_get_html("6Lexm9sSAAAAAMgxddCCAQVJkVbDzpzehp9h-wuv") . " <p><input type='submit' name='create' value='Share' /></p> </form> </td></tr></table>";