mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Removed setting format in getter
That’s already handled in getFormatter()
This commit is contained in:
parent
655b047d80
commit
14b3468eee
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user