Skip to content

Commit

Permalink
#3044-fixed date
Browse files Browse the repository at this point in the history
  • Loading branch information
caiodasilva2005 committed Dec 24, 2024
1 parent 5f16229 commit 1bd863a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/src/services/slack.services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default class slackServices {
static async processMessageSent(event: SlackMessageEvent, organizationId: string): Promise<Announcement | undefined> {
//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;
Expand Down

0 comments on commit 1bd863a

Please sign in to comment.