Hier wird der String für $this->time erstellt: https://github.com/contao/core/blob/....php#L146-L162
Du könntest dir im Template folgenden Code einfügen:
PHP-Code:
<?php
global $objPage;
$span = \Calendar::calculateSpan($this->begin, $this->end);
if ($this->addTime)
{
if ($span > 0)
{
$this->date = \Date::parse($objPage->datimFormat, $this->begin) . '–' . \Date::parse($objPage->datimFormat, $this->end);
}
elseif ($this->begin == $this->end)
{
$this->time = \Date::parse($objPage->timeFormat, $this->begin); // not really necessary
}
else
{
$this->time = \Date::parse($objPage->timeFormat, $this->begin) . '–' . \Date::parse($objPage->timeFormat, $this->end);
}
}
?>
Lesezeichen