<?php
defined('C5_EXECUTE') or die(_("Access Denied."));
echo $this->controller->getOpenTag();
echo $this->controller->getTitle();
$format = (strlen($this->controller->dateFormat)?$this->controller->dateFormat:"m/d/y");
echo date($format,strtotime($this->controller->getContent()));
echo $this->controller->getCloseTag();

<?php
defined('C5_EXECUTE') or die(_("Access Denied."));
$dh = Core::make('helper/date'); /* @var $dh \Concrete\Core\Localization\Service\Date */
echo $this->controller->getOpenTag();
echo $this->controller->getTitle();
$format = (strlen($this->controller->dateFormat)?$this->controller->dateFormat:"m/d/y");
echo $dh->formatCustom($format, $this->controller->getContent());
echo $this->controller->getCloseTag();

Use date helper in date time template of page_attribute_display block
Use date helper in date time template of page_attribute_display block

Makes use of correct locale on multilingual websites


Former-commit-id: ec2a56f5e9ae5eb51a31db1e72473270502c7084