aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-09-18 00:34:55 -0700
committerFuwn <[email protected]>2023-09-18 00:34:55 -0700
commitf1ca8c256ca5af2dc4b23a1570ba0cbe5626c732 (patch)
treec4790e4356a888834de4caa55606be39b43fb066 /src
parentfeat(notifications): better image support (diff)
downloaddue.moe-f1ca8c256ca5af2dc4b23a1570ba0cbe5626c732.tar.xz
due.moe-f1ca8c256ca5af2dc4b23a1570ba0cbe5626c732.zip
fix(feeds): use utc date string
Diffstat (limited to 'src')
-rw-r--r--src/routes/feeds/activity-notifications/+server.ts6
1 files 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 }) => {
<author>${notification.user.name}</author>
<media:thumbnail url="${notification.user.avatar.large}" />
<category>${prettyType}</category>
-<pubDate>${new Date(
- notification.createdAt * 1000 + new Date().getTimezoneOffset()
- ).toUTCString()}</pubDate>
+<pubDate>${new Date(notification.createdAt * 1000).toUTCString()}</pubDate>
</item>`;
})
.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'
}
});