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

Tags:

 

 

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

 

Comments

quality writing skill

I'm extremely impressed with your writing skills and also with the layout on your weblog. Is this a paid theme or did you modify it yourself? Anyway keep up the nice quality writing, it is rare to see a great blog like this one today..
wesdf

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.