MyBB Community Forums

Full Version: I am so very confused! error when making thread.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Referring to http://crisis-averted.org

I try to make threads or delete threads or sign up and I get thrown a ton of these errors:

Warning [2] 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 - Line: 1826 - File: inc/functions.php PHP 5.3.5 (Linux)File Line Function
[PHP] errorHandler->error
/inc/functions.php 1826 date
/inc/functions.php 1937 update_stats
/inc/datahandlers/post.php 1001 update_forum_counters
/newreply.php 483 PostDataHandler->insert_post


Warning [2] mktime(): 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 - Line: 1826 - File: inc/functions.php PHP 5.3.5 (Linux)File Line Function
[PHP] errorHandler->error
/inc/functions.php 1826

What should I do? I would appreciate some troubleshooting because I'm not very good with PHP and everything I find online is highly technical and I don't understand it yet.
You or your host haven't set the timezone or have set it incorrectly in php.ini

Read these for more info:

http://www.php.net/manual/en/datetime.co...e.timezone
http://www.php.net/manual/en/timezones.php

If you have access to php.ini then set or correct the timezone or ask your host to do so.
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = "America/New York"

; http://php.net/date.default-latitude
;date.default_latitude = 31.7667

; http://php.net/date.default-longitude
;date.default_longitude = 35.2333

; http://php.net/date.sunrise-zenith
;date.sunrise_zenith = 90.583333

; http://php.net/date.sunset-zenith
;date.sunset_zenith = 90.583333

this is in my /etc/php/php.ini
According to http://www.php.net/manual/en/timezones.america.php

It should be America/New_York and not America/New York
(2011-02-07, 11:09 PM)- G33K - Wrote: [ -> ]According to http://www.php.net/manual/en/timezones.america.php

It should be America/New_York and not America/New York

huzzah! thank you very much, it works just fine now!