From f1ca8c256ca5af2dc4b23a1570ba0cbe5626c732 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 18 Sep 2023 00:34:55 -0700 Subject: fix(feeds): use utc date string --- src/routes/feeds/activity-notifications/+server.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/routes/feeds/activity-notifications/+server.ts b/src/routes/feeds/activity-notifications/+server.ts index e57e9d55..0691eb4c 100644 --- a/src/routes/feeds/activity-notifications/+server.ts +++ b/src/routes/feeds/activity-notifications/+server.ts @@ -47,9 +47,7 @@ export const GET = async ({ url }) => { ${notification.user.name} ${prettyType} -${new Date( - notification.createdAt * 1000 + new Date().getTimezoneOffset() - ).toUTCString()} +${new Date(notification.createdAt * 1000).toUTCString()} `; }) .join('')} @@ -59,7 +57,7 @@ export const GET = async ({ url }) => { return new Response(render(data), { headers: { - 'Cache-Control': `max-age=0, s-max-age=${60}`, + 'Cache-Control': `max-age=0, s-max-age=0`, 'Content-Type': 'application/xml' } }); -- cgit v1.2.3