diff --git a/services/web/app/src/Features/SplitTests/SlackNotificationManager.js b/services/web/app/src/Features/SplitTests/SlackNotificationManager.js index 811e62a931..7774b5fd9d 100644 --- a/services/web/app/src/Features/SplitTests/SlackNotificationManager.js +++ b/services/web/app/src/Features/SplitTests/SlackNotificationManager.js @@ -29,6 +29,8 @@ async function sendNotification(splitTest, action, user) { ), ].join('\n') + const date = splitTest.archived ? splitTest.archivedAt : lastVersion.createdAt + const payload = { name: splitTest.name, action, @@ -38,9 +40,7 @@ async function sendNotification(splitTest, action, user) { variantsConfig, active: lastVersion.active.toString(), author: user.email, - date: - moment(lastVersion.createdAt).utc().format('Do MMM YYYY, h:mm a') + - ' UTC', + date: moment(date).utc().format('Do MMM YYYY, h:mm a') + ' UTC', comment: lastVersion.comment ? `with comment: ${lastVersion.comment}` : '', versionNumber: `${lastVersion.versionNumber}`, url: `${Settings.siteUrl}/admin/split-test/edit/${splitTest.name}`,