diff --git a/src/index.tsx b/src/index.tsx index eba2e75..c4fc99b 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -959,7 +959,7 @@ const app = new Elysia({ if (HIDE_HISTORY) { return redirect(`${WEBROOT}/`, 302); } - + if (!auth?.value) { return redirect(`${WEBROOT}/login`, 302); } @@ -1060,8 +1060,7 @@ const app = new Elysia({ {userJobs.map((job) => ( - {job.date_created.split("T")[1]?.split(".")[0] ?? - job.date_created} + {new Date(job.date_created).toLocaleTimeString()} {job.num_files} {job.finished_files}