fix: add timezone support

issue #258
This commit is contained in:
C4illin 2025-04-12 10:24:08 +02:00
parent f42665ca40
commit 4b5c732380

View file

@ -959,7 +959,7 @@ const app = new Elysia({
if (HIDE_HISTORY) { if (HIDE_HISTORY) {
return redirect(`${WEBROOT}/`, 302); return redirect(`${WEBROOT}/`, 302);
} }
if (!auth?.value) { if (!auth?.value) {
return redirect(`${WEBROOT}/login`, 302); return redirect(`${WEBROOT}/login`, 302);
} }
@ -1060,8 +1060,7 @@ const app = new Elysia({
{userJobs.map((job) => ( {userJobs.map((job) => (
<tr> <tr>
<td safe> <td safe>
{job.date_created.split("T")[1]?.split(".")[0] ?? {new Date(job.date_created).toLocaleTimeString()}
job.date_created}
</td> </td>
<td>{job.num_files}</td> <td>{job.num_files}</td>
<td class="max-sm:hidden">{job.finished_files}</td> <td class="max-sm:hidden">{job.finished_files}</td>