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

I looked for a solution on drupal.org and I can't find anything except a thread about Drupal 7.x

Any idea why this may be happening? Help is most appreciated.

Comments

tovstiadi’s picture

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.

BeatnikDude’s picture

Running Mac OS X Server 10.6.2 (Snow Leopard), PHP 5.3

• I did not have /etc/php.ini
• only /etc/php.ini.default
• and I did not want to apply the whole file
• so I simply added a /etc/php.ini w/ the single line: date.timezone = "America/Los_Angeles"

Curuquendil’s picture

This occurs not just on Mac OS since I had it also on Fedora 12. The same change to the PHP initialization file (/etc/php.ini) did the trick.

siteograf’s picture

This solution works great on MacOS Leopard. In my case I have php.ini in the next folder: /private/etc/php.ini
It's easy to find time-zone from here: http://md.php.net/manual/en/timezones.php

edfsoft’s picture

I had the same problem and i fixed up following your solution.
In my case, the php.ini fila was in the path 'c:\archivos de programa\php.ini'
Thanks !

jlgarcia’s picture

The correct usage is as follows:

[Date]
date.timezone = America/Tijuana

No quotation marks.

Here you may found more time zones.
http://www.php.net/manual/en/timezones.php

cm0dit’s picture

Here's a complete list of php supported timezones per their docs. If you're in the US here's a direct link to that list.