/** * Returns human readable date. * * Set the offset to the system offset as the dates returned by the * cache keys are not GMT. * * @param array An optional array with configuration options. * @return string Formatted date. */ public function humanize($config = array()) { $config = new KConfig($config); $config->append(array( 'gmt_offset' => date_offset_get(new DateTime) )); return parent::humanize($config); }
/** * Returns human readable date. * * @param array An optional array with configuration options. * @return string Formatted date. */ public function humanize($config = array()) { $config = new KConfig($config); $config->append(array( 'gmt_offset' => 0 )); return parent::humanize($config); }
/** * Returns human readable date. * * @param array An optional array with configuration options. * @return string Formatted date. */ public function humanize($config = array()) { $config = new KConfig($config); $config->append(array('gmt_offset' => KFactory::get('lib.joomla.config')->getValue('config.offset') * 3600)); return parent::humanize($config); }