https://www.icyphoenix.com/viewtopic.php?f=35&t=8939
-----------------------------------
Costa
Wed 20 Feb, 2013 10:08

Problem After Migration
-----------------------------------
A few days ago I migrate my VPS for upgrade my operatio system server CentOS release 4.9 (Final), to the latest operation system 

    CENTOS 6.3 x86_64 virtuozzo – server
    WHM 11.34.1 (build 7) .

After the migration I get this

[quote][Icy Phoenix Debug] PHP Notice: in file /includes/stats_modules/month_stat_module.php on line 72: mktime() [function.mktime]: 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/Chicago' for 'CST/-6.0/no DST' instead
[Icy Phoenix Debug] PHP Notice: in file /includes/stats_modules/month_stat_module.php on line 143: mktime() [function.mktime]: 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/Chicago' for 'CST/-6.0/no DST' instead
[Icy Phoenix Debug] PHP Notice: in file /includes/stats_modules/month_stat_module.php on line 72: mktime() [function.mktime]: 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/Chicago' for 'CST/-6.0/no DST' instead[/quote]
in statistics modul
http://a33.gr/statistics.php

Version of Icy Phoenix: 	2.0.0.86
Version of PHP: 	5.3.21


-----------------------------------
Joshua203
Wed 20 Feb, 2013 11:56

Re: Problem After Migration
-----------------------------------
Have you googled a bit Costa? ...I've found this:

http://www.cyberciti.biz/faq/unix-phpinfo-it-isnot-safeto-rely-on-systems-timezone-settings/

Maybe it will help you?


-----------------------------------
Costa
Wed 20 Feb, 2013 12:28

Re: Problem After Migration
-----------------------------------
[b]Joshua203[/b],
Thank you, I will see with attention and I let you know here.


-----------------------------------
Mighty Gorgon
Sat 02 Mar, 2013 10:40

Re: Problem After Migration
-----------------------------------
Joshua is right... try to check you have defined correctly the default timezone.

Also from a coding point of view all time functions should be converted to GM time functions. I'll have a look at that file.


-----------------------------------
TheSteffen
Sun 03 Mar, 2013 21:28

Re: Problem After Migration
-----------------------------------
I think it is a permission problem.

I user on IP.de also had this problem.

I solved it (for sure not the best way)

OPEN [b]includes/functions.php[/b]
FIND
[codeblock]if (!defined('STRIP'))
{
	// If we are on PHP >= 6.0.0 we do not need some code
	if (version_compare(PHP_VERSION, '6.0.0-dev', '>='))
	{
		define('STRIP', false);
	}
	else
	{
		define('STRIP', (@get_magic_quotes_gpc()) ? true : false);
	}
}[/codeblock]
REPLACE WITH
[codeblock]if (!defined('STRIP'))
{
	// If we are on PHP >= 6.0.0 we do not need some code
	if (version_compare(PHP_VERSION, '6.0.0-dev', '>='))
	{
		define('STRIP', false);
	}
	else
	{
		define('STRIP', (@get_magic_quotes_gpc()) ? true : false);
	}
}
date_default_timezone_set ('Europe/Berlin');[/codeblock]

For you it should be
[code linenumbers=false]date_default_timezone_set ('America/Chicago');[/code]


-----------------------------------
alexandro
Mon 26 May, 2014 05:46

Re: Problem After Migration
-----------------------------------
what is the solution? how do you solve it? i have this problem :'( but i have 2.0 icy and don't have this secuence


-----------------------------------
mort
Mon 26 May, 2014 13:22

Re: Problem After Migration
-----------------------------------
Debug on your site gives this:

[Icy Phoenix Debug] PHP Notice: in file /blocks/statistics_complete.php on line 78: 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. [color=red]In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.[/color]


-----------------------------------
alexandro
Mon 26 May, 2014 20:01

Re: Problem After Migration
-----------------------------------
[code]In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.[/code] How i do it?

In ACP> General Config>Site Config, i chose   UTC - 5 Eastern Standard Time, and delete n times the cache but the mesage don't stop.


