From a39f28b4456650e69771bf9ace540f893c018fdb Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Sat, 7 Dec 2019 20:06:10 -0700 Subject: [PATCH] Fix issue with time inputs --- pages/addevent.php | 2 +- pages/editcomponent.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/addevent.php b/pages/addevent.php index 7ae151a..e76753e 100644 --- a/pages/addevent.php +++ b/pages/addevent.php @@ -36,7 +36,7 @@ foreach ($events as $e) { $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("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("publicnotes", "", "textarea", false, null, null, "Public Notes", "far fa-comment-dots", 6); diff --git a/pages/editcomponent.php b/pages/editcomponent.php index 904007f..b3b7a66 100644 --- a/pages/editcomponent.php +++ b/pages/editcomponent.php @@ -63,7 +63,7 @@ if ($editing) { $form->addHiddenInput("machine", $machine->getID()); $date = date('Y-m-d'); -$time = date('H:i:s'); +$time = date('H:i'); if (!empty($component->getTestedDate())) { $date = date("Y-m-d", strtotime($component->getTestedDate())); $time = date("H:i:s", strtotime($component->getTestedDate()));