Php help
#1

I'm getting this warning:

Quote:

Message: 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone.

In this code:

Код:
if ( ! function_exists('unix_to_human'))
{
	function unix_to_human($time = '', $seconds = FALSE, $fmt = 'us')
	{
		$r  = date('Y', $time).'-'.date('m', $time).'-'.date('d', $time).' ';
		
		if ($fmt == 'us')
		{
			$r .= date('h', $time).':'.date('i', $time);
		}
		else
		{
			$r .= date('H', $time).':'.date('i', $time);
		}
	
		if ($seconds)
		{
			$r .= ':'.date('s', $time);
		}
	
		if ($fmt == 'us')
		{
			$r .= ' '.date('A', $time);
		}
		
		return $r;
	}
}
Reply


Messages In This Thread
Php help - by Face9000 - 26.03.2016, 23:37
Re: Php help - by Mauzen - 26.03.2016, 23:38
Re: Php help - by SchurmanCQC - 27.03.2016, 03:25
Re: Php help - by Face9000 - 27.03.2016, 11:02
Re: Php help - by Jstylezzz - 27.03.2016, 11:34
Re: Php help - by SchurmanCQC - 27.03.2016, 19:08

Forum Jump:


Users browsing this thread: 1 Guest(s)