From 5c629b12638eb7cd5b45e97e3374b70c0ab36471 Mon Sep 17 00:00:00 2001 From: Ean Milligan Date: Tue, 21 Apr 2026 12:44:26 -0400 Subject: [PATCH] add timezone notice to home page, change list to give different response for lastUpdated --- mod.ts | 4 ++++ ssr/buildHome.ts | 1 + 2 files changed, 5 insertions(+) diff --git a/mod.ts b/mod.ts index 23269a7..1b2259f 100644 --- a/mod.ts +++ b/mod.ts @@ -72,6 +72,10 @@ Deno.serve({ port: config.api.port }, async (req) => { }); if (failed) return genericResponse(STATUS_CODE.InternalServerError, "Couldn't read DB."); + for (const plan of plans) { + plan.lastUpdated = plan.lastUpdated.getTime(); + } + return genericResponse(STATUS_CODE.OK, JSON.stringify(plans)); } else if (path.startsWith('/export/')) { const userId = path.replace('/export/', ''); diff --git a/ssr/buildHome.ts b/ssr/buildHome.ts index 78edc3f..57a292d 100644 --- a/ssr/buildHome.ts +++ b/ssr/buildHome.ts @@ -69,6 +69,7 @@ catch (error){prompt('Failed to copy to clipboard, please select and copy the li

This is a very basic management page. Please excuse the number of alert/prompts that will come up when you click on things as it was the quickest way to build it out.

Please note: anything modifying data will require you to enter your PIN again as both the web view you are looking at and server behind it are completely stateless for simplicity.

+

DateTimeStamps on this page are all displayed in the US Eastern time zone. I don't care enough to make this extremely basic page dynamic.

${userName}'s Plans: