/** * Retrieve date format * * @return string */ protected function _getFormat() { $format = $this->getColumn()->getFormat(); if (!$format) { if (self::$_format === null) { try { self::$_format = $this->_localeDate->getDateFormat(\IntlDateFormatter::MEDIUM); } catch (\Exception $e) { $this->_logger->critical($e); } } $format = self::$_format; } return $format; }
/** * Retrieve date format * * @return string */ protected function _getFormat() { $format = $this->getColumn()->getFormat(); if (!$format) { if (is_null(self::$_format)) { try { self::$_format = $this->_localeDate->getDateFormat(\Magento\Framework\Stdlib\DateTime\TimezoneInterface::FORMAT_TYPE_MEDIUM); } catch (\Exception $e) { $this->_logger->logException($e); } } $format = self::$_format; } return $format; }