產業消息

  @@ -975,7 +975,7 @@ public static function calendar($value, $name, $id, $format = '%Y-%m-%d', $attri
975  static::_('bootstrap.tooltip');
976   
977  // Format value when not nulldate ('0000-00-00 00:00:00'), otherwise blank it as it would result in 1970-01-01.
刪除或註解 if ($value && $value != JFactory::getDbo()->getNullDate())
978  新增 if ($value && $value != JFactory::getDbo()->getNullDate() && strtotime($value) !== false)
979  {
980  $tz = date_default_timezone_get();
981  date_default_timezone_set('UTC');
   

[參考]https://github.com/joomla/joomla-cms/pull/7849/files#diff-b01d47e3fbe4a8e5fb4987f4df64b291

Make sure $value parameter passed to JHtml::calendar method is valid #7849