Error Message: Warning: date_create(): It is not safe to rely on the system's timezone settings.

 

Error after installing Drupal 6.20 on Apache 2 with PHP 5.3.3

Message:

Warning: date_create(): It is not safe to rely on the system's timezone settings.
Warning: strtotime(): It is not safe to rely on the system's timezone settings.

 

Used:

Drupal 6.20, Apache 2, PHP 5.3.3

 
Error message:

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 '2.0/DST' instead in C:\inetpub\wwwroot\drupal-6\modules\node\node.module on line 808

 

Solution:

Locate PHP.INI and enable date.timezone and change to:

date.timezone = "America/New_York"

restart the server

 

Amazon item: