made every Notification provider supply time like dingding after #3152

This commit is contained in:
Frank Elsinga
2023-05-29 19:24:40 +02:00
parent 1e1cc86a10
commit f3c09f2bbd
11 changed files with 40 additions and 25 deletions

View File

@@ -39,7 +39,6 @@ class Slack extends NotificationProvider {
return okMsg;
}
const time = heartbeatJSON["time"];
const textMsg = "Uptime Kuma Alert";
let data = {
"text": `${textMsg}\n${msg}`,
@@ -65,7 +64,7 @@ class Slack extends NotificationProvider {
},
{
"type": "mrkdwn",
"text": "*Time (UTC)*\n" + time,
"text": `*Time (${heartbeatJSON["timezone"]})*\n${heartbeatJSON["localDateTime"]}`,
}],
}
],