I've the following situation: I'm working on a system for a karting track. I need the user to register time that each driver did in a lap.
In database, the field is in TIME(3) format since I need three positions for the milliseconds. When I edit the inline field in the List Page, I see that it's possible to type the milliseconds, however, I' cant format it so that the same happens in the Add Page and Edit Page.
private function setInnerHTML($element, $html) { $html = htmlentities($html); $fragment = $element->ownerDocument->createDocumentFragment(); $fragment->appendXML($html); $clone = $element->cloneNode(); // Get element copy without children $clone->appendChild($fragment); $element->parentNode->replaceChild($clone, $element); }