From 1bd863a361a9b9a9d1307deb4f90fe89704fe434 Mon Sep 17 00:00:00 2001 From: caiodasilva2005 Date: Tue, 24 Dec 2024 09:58:45 -0500 Subject: [PATCH] #3044-fixed date --- src/backend/src/services/slack.services.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/src/services/slack.services.ts b/src/backend/src/services/slack.services.ts index 5496922d23..57a7b70023 100644 --- a/src/backend/src/services/slack.services.ts +++ b/src/backend/src/services/slack.services.ts @@ -78,7 +78,7 @@ export default class slackServices { static async processMessageSent(event: SlackMessageEvent, organizationId: string): Promise { //get the name of the channel from the slack api const slackChannelName: string = (await getChannelName(event.channel)) ?? `Unknown_Channel:${event.channel}`; - const dateCreated = new Date(Number(event.event_ts)); + const dateCreated = new Date(1000 * Number(event.event_ts)); //get the message that will be processed either as the event or within a subtype let eventMessage: SlackMessage;