Jump to content


Default Timezone not working correctly


1 reply to this topic

#1 mririgo

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 18 October 2011 - 02:33 PM

When setting the option for LiveZilla to use the server default timezone, all hours are off by an hour within LiveZilla. I can confirm that the server time is still correct by running:
echo date('g');
But, the time in LiveZilla is an hour earlier. We are in the America/Central Time Zone.

I was able to resolve this issue by commenting out the code in the `functions.global.inc.php` file that deals with setting the default time zone, but I would say this is a temporary fix.

	/* mririgo - Commenting out 10/18/2011
	if(function_exists("date_default_timezone_set"))
	{
		if(getSystemTimezone() !== false)
			@date_default_timezone_set(getSystemTimezone());
		else
			@date_default_timezone_set('Europe/Dublin');
	}
	*/


#2 Derek Punzova

    Support Team Member

  • Moderators
  • 6057 posts

Posted 19 October 2011 - 06:34 AM

I guess that

getSystemTimezone()

fails on your webserver for some reason. Why don't you simply select the timezone you need in the LiveZilla server configuration?
- If you like to suggest a new feature, please click here.
Kind Regards,
Derek





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users