From 148bbc22b3e0f03e2c141508617f5e50f66074f5 Mon Sep 17 00:00:00 2001 From: Mike Simms Date: Tue, 4 Jun 2024 16:39:49 -0400 Subject: [PATCH] :bug: Fixed adding of new gear without specifying the add time. --- html/gear.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/html/gear.html b/html/gear.html index e76df33..3602912 100644 --- a/html/gear.html +++ b/html/gear.html @@ -53,7 +53,9 @@ let name = document.getElementById("name").value; let description = document.getElementById("description").value; - if (!isNaN(add_time)) + if (isNaN(add_time)) + add_time = Date.now() / 1000; + else add_time = add_time / 1000; if (!isNaN(retired_time)) retired_time = retired_time / 1000;