SOLVED Error Date_default_timezone_set()


Subject: Error Date_default_timezone_set()
Somebody help me with this error?

Code: [Download] [Hide] [Select]
[Icy Phoenix Debug] PHP Notice: in file /includes/emailer.php on line 231: date(): 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 'Europe/Berlin' for 'CEST/2.0/DST' instead
[Icy Phoenix Debug] PHP Notice: in file /includes/emailer.php on line 231: date(): 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 'Europe/Berlin' for 'CEST/2.0/DST' instead


I'm using Icy Phoenix 1.3.27.80

Subject: Re: Error Date_default_timezone_set()
Are you using Xampp or do you have it on a live server?

Can you tell us your php version?

I guess xampp and php 5.3.x
You can edit your php.ini file and put in the following line:
date.timezone = "America/Anchorage"
You can find valid time zone strings at http://nl3.php.net/manual/en/timezones.php

Profile PM  
Subject: Re: Error Date_default_timezone_set()
I'm using a web server.

I've already solved, I edited the functions.php file and add the following line:

date_default_timezone_set ('Europe / Madrid');

Greetings!

Subject: Re: Error Date_default_timezone_set()
Yes, that should also solve it... thanks for your answer

What php version do you have?

Profile PM  
Subject: Re: [SOLVED] Error Date_default_timezone_set()
My PHP Version is 5.3.10

You can see here:

h**p://***.x-tremeforos.es/phpinfo.php

Subject: Re: Error Date_default_timezone_set()
I remember having that problem when running PHP on windows. (Some reason Linux never complains about that)
Glad you figured it out though.

Subject: Re: Error Date_default_timezone_set()
what is the solution? how do you solve it? i have this problem :'(

Profile PM  
Subject: Re: [SOLVED] Error Date_default_timezone_set()
You need to add the default timezone in your configuration.

Do you have access to your PHP.INI or other panel where you can set the default timezone?


Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.0922s (PHP: 20% SQL: 80%)
SQL queries: 10 - Debug Off - GZIP Enabled