It is not safe to rely on the system’s timezone settings

I get this warning every time I create or update content.
Here’s a sample:

warning: strtotime(): 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 /Library/WebServer/Documents/cis/modules/node/node.module on line 802.

Running the following: Apache/2.2.13 (Unix) PHP/5.3.0
MySQL database 5.0.82
Drupal 6.15

——————–

Figured it out. Running Mac OS X Server 10.6.2 (Snow Leopard), PHP 5.3

Needed to set the timezone in the php.ini file on the server.

1. Locate the file – the default location is etc/php.ini The etc folder is hidden by default, run a terminal command to show hidden files (defaults write com.apple.finder AppleShowAllFiles -bool true)

2. Search for ‘timezone’ in php.ini file

3. change
;date.timezone =

to

date.timezone = “America/New_York”

or whatever specific timezone you are in.

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s