/** * Register some data that will be sent to template as special HTML comment * * @return array */ protected function getCommentedData() { $data = parent::getCommentedData(); $currentFormats = \XLite\Core\Converter::getDateFormatsByStrftimeFormat(); $data['dateFormat'] = $currentFormats['jsFormat']; return $data; }