Removed setting format in getter

That’s already handled in getFormatter()
This commit is contained in:
Ingo Schommer 2017-04-27 11:09:59 +12:00
parent 655b047d80
commit 14b3468eee

View File

@ -244,11 +244,6 @@ class DatetimeField extends TextField
*/
public function getDatetimeFormat()
{
if ($this->getHTML5()) {
// Browsers expect ISO 8601 dates, localisation is handled on the client
$this->setDatetimeFormat(DBDatetime::ISO_DATETIME_NORMALISED);
}
if ($this->datetimeFormat) {
return $this->datetimeFormat;
}