Hello,
I was having the same issue on my hosting server while it was working fine locally.
I guess it is due to the PHP version.
I finally fixed it myself like this:
In file libraries\joomla\html\html\jgrid.php, around the line #144
Replace :
Code:
$publish_up = ($publish_up != $nullDate) ? JFactory::getDate($publish_up, 'UTC')->setTimeZone($tz) : false;
$publish_down = ($publish_down != $nullDate) ? JFactory::getDate($publish_down, 'UTC')->setTimeZone($tz) : false;
// Create tip text, only we have publish up or down settings
$tips = array();
if ($publish_up) {
$tips[] = JText::sprintf('JLIB_HTML_PUBLISHED_START', $publish_up->format(JDate::$format, true));
}
if ($publish_down) {
$tips[] = JText::sprintf('JLIB_HTML_PUBLISHED_FINISHED', $publish_down->format(JDate::$format, true));
}
By this code :
Code:
//$publish_up = ($publish_up != $nullDate) ? JFactory::getDate($publish_up, 'UTC')->setTimeZone($tz) : false;
$publish_up = ($publish_up != $nullDate) ? JFactory::getDate($publish_up, 'UTC') : false; // zyphir fix
//$publish_down = ($publish_down != $nullDate) ? JFactory::getDate($publish_down, 'UTC')->setTimeZone($tz) : false;
$publish_down = ($publish_down != $nullDate) ? JFactory::getDate($publish_down, 'UTC') : false; // zyphir fix
// Create tip text, only we have publish up or down settings
$tips = array();
if ($publish_up) {
$publish_up->setTimezone($tz); // zyphir fix
$tips[] = JText::sprintf('JLIB_HTML_PUBLISHED_START', $publish_up->format(JDate::$format, true));
}
if ($publish_down) {
$publish_down->setTimezone($tz); // zyphir fix
$tips[] = JText::sprintf('JLIB_HTML_PUBLISHED_FINISHED', $publish_down->format(JDate::$format, true));
}
Enjoy
