Fix issue with time inputs

This commit is contained in:
Skylar Ittner 2019-12-07 20:06:10 -07:00
parent 193b3d51f2
commit a39f28b445
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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()));