/** * Return escaped value for calendar * * @param string $index * @return string */ public function getEscapedValue($index = null) { if ($this->getColumn()->getFilterTime()) { $value = $this->getValue($index); if ($value instanceof \DateTime) { return $this->_localeDate->formatDateTime($value); } return $value; } return parent::getEscapedValue($index); }
/** * Return escaped value for calendar * * @param string $index * @return string */ public function getEscapedValue($index = null) { if ($this->getColumn()->getFilterTime()) { $value = $this->getValue($index); if ($value instanceof \Zend_Date) { return $value->toString($this->_localeDate->getDateTimeFormat(\Magento\Framework\Stdlib\DateTime\TimezoneInterface::FORMAT_TYPE_SHORT)); } return $value; } return parent::getEscapedValue($index); }