fix: RSS pubDate timezone issue with backend test (#6422) (#6805)

This commit is contained in:
Taejung Heo
2026-01-25 22:07:36 +09:00
committed by GitHub
parent 0b1161c6fb
commit 0d64cd6915
2 changed files with 38 additions and 2 deletions
+2 -1
View File
@@ -7,6 +7,7 @@ const analytics = require("../analytics/analytics");
const { marked } = require("marked");
const { Feed } = require("feed");
const config = require("../config");
const dayjs = require("dayjs");
const { setting } = require("../util-server");
const {
@@ -100,7 +101,7 @@ class StatusPage extends BeanModel {
description: `${heartbeat.name} has been down since ${heartbeat.time} UTC`,
id: `${heartbeat.monitorID}-${heartbeat.time}`,
link: feedUrl,
date: new Date(heartbeat.time),
date: dayjs.utc(heartbeat.time).toDate(),
});
});