diff --git a/web/src/pages/now.astro b/web/src/pages/now.astro index b02bb99..8d67eaa 100644 --- a/web/src/pages/now.astro +++ b/web/src/pages/now.astro @@ -1,13 +1,16 @@ --- import Base from "@layout/Base"; import { authPB } from "@utils/pocketbase"; +import { getFormattedDate } from '@utils/date' export const prerender = false const pb = await authPB() const records = await pb.collection('now').getFullList({ - sort: '-created' + sort: '-updated' }) + +const lastUpdated = getFormattedDate(records[0].updated) --- @@ -19,7 +22,8 @@ const records = await pb.collection('now').getFullList({

I'll update this every now and then; the gist is "this is what you would tell someone that you haven't seem in a year, what you've been up to". Love that concept!

-
+
+

Last Updated: {lastUpdated}

{ records.map(r => ( <>