Hi,

I'm updating my own module from drupal 6 to drupal 7, and so I've downloaded the drupal-7.0-alpha2.tar.gz file and tried to install it. Before even trying out my module, on one of the very first screens (after unpacking drupal and setting up the requested folders in the 'sites' directory) I get this error:

Warning: date_create(): 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 format_date() (line 1814 of .../common.inc).

(I've removed some personal info...)

This message repeats many many times, and I cannot enter my password or root user name. I have a database in place and the settings file is set up properly. Since this isn't the nightly snapshot, I thought that there wouldn't be much of a problem installing it so that I could continue work on my module. I've searched the drupal site and found not much about date_create(). Can anybody point me in the right direction to understand this problem, and how I can fix it? Thanks.

Comments

radiodee1’s picture

I did more searching and found this:

http://drupal.org/node/325827

It describes my problem pretty exactly. At the bottom of the thread it says you should be able to set the proper timezone in your '.htaccess' file or in your settings.php file. I chose the latter. I added this line to my settings.php file:

ini_set('date.timezone', 'America/New_York');

The error message now seems to have gone away. Thanks to everyone.