Fix issue with time inputs
This commit is contained in:
parent
193b3d51f2
commit
a39f28b445
@ -36,7 +36,7 @@ foreach ($events as $e) {
|
|||||||
|
|
||||||
$form->addInput("event", "", "select", true, null, $eventselect, "Event", "fas fa-list");
|
$form->addInput("event", "", "select", true, null, $eventselect, "Event", "fas fa-list");
|
||||||
$form->addInput("date", date("Y-m-d"), "date", true, null, null, "Date", "fas fa-calendar");
|
$form->addInput("date", date("Y-m-d"), "date", true, null, null, "Date", "fas fa-calendar");
|
||||||
$form->addInput("time", date("H:i:s"), "time", true, null, null, "Time", "fas fa-clock");
|
$form->addInput("time", date("H:i"), "time", true, null, null, "Time", "fas fa-clock");
|
||||||
$form->addInput("privatenotes", "", "textarea", false, null, null, "Private Notes", "fas fa-comment-dots", 6);
|
$form->addInput("privatenotes", "", "textarea", false, null, null, "Private Notes", "fas fa-comment-dots", 6);
|
||||||
$form->addInput("publicnotes", "", "textarea", false, null, null, "Public Notes", "far fa-comment-dots", 6);
|
$form->addInput("publicnotes", "", "textarea", false, null, null, "Public Notes", "far fa-comment-dots", 6);
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ if ($editing) {
|
|||||||
$form->addHiddenInput("machine", $machine->getID());
|
$form->addHiddenInput("machine", $machine->getID());
|
||||||
|
|
||||||
$date = date('Y-m-d');
|
$date = date('Y-m-d');
|
||||||
$time = date('H:i:s');
|
$time = date('H:i');
|
||||||
if (!empty($component->getTestedDate())) {
|
if (!empty($component->getTestedDate())) {
|
||||||
$date = date("Y-m-d", strtotime($component->getTestedDate()));
|
$date = date("Y-m-d", strtotime($component->getTestedDate()));
|
||||||
$time = date("H:i:s", strtotime($component->getTestedDate()));
|
$time = date("H:i:s", strtotime($component->getTestedDate()));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user