From 4bf87684931d9d6bc12679104d324d72ee90ee77 Mon Sep 17 00:00:00 2001 From: Yasin Date: Sat, 9 Sep 2023 11:20:48 +0200 Subject: [PATCH 1/2] Update notification-provider discord.js use Discord timestamp format https://discord.com/developers/docs/reference#message-formatting-formats --- server/notification-providers/discord.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/notification-providers/discord.js b/server/notification-providers/discord.js index f24cd616..3e8a55c2 100644 --- a/server/notification-providers/discord.js +++ b/server/notification-providers/discord.js @@ -63,8 +63,8 @@ class Discord extends NotificationProvider { value: monitorJSON["type"] === "push" ? "Heartbeat" : address, }, { - name: `Time (${heartbeatJSON["timezone"]})`, - value: heartbeatJSON["localDateTime"], + name: "Time", + value: ``, }, { name: "Error", @@ -98,8 +98,8 @@ class Discord extends NotificationProvider { value: monitorJSON["type"] === "push" ? "Heartbeat" : address, }, { - name: `Time (${heartbeatJSON["timezone"]})`, - value: heartbeatJSON["localDateTime"], + name: "Time", + value: ``, }, { name: "Ping", From 07d2206a5bb16e228462235dde56a6b33654917f Mon Sep 17 00:00:00 2001 From: Yasin Date: Tue, 12 Sep 2023 14:15:29 +0200 Subject: [PATCH 2/2] Update discord.js use heartbeatJSON["time"] instead of Date.now() --- server/notification-providers/discord.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/notification-providers/discord.js b/server/notification-providers/discord.js index 3e8a55c2..9083b551 100644 --- a/server/notification-providers/discord.js +++ b/server/notification-providers/discord.js @@ -64,7 +64,7 @@ class Discord extends NotificationProvider { }, { name: "Time", - value: ``, + value: ``, }, { name: "Error", @@ -99,7 +99,7 @@ class Discord extends NotificationProvider { }, { name: "Time", - value: ``, + value: ``, }, { name: "Ping",