From 5a505f331a6e6ae5cb90c3e89bdcfce32ea758c4 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Mon, 22 Feb 2021 08:21:32 +0100 Subject: :bug: fix Event Emitter --- src/util/Event.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util/Event.ts') diff --git a/src/util/Event.ts b/src/util/Event.ts index c75c909f..39389cbb 100644 --- a/src/util/Event.ts +++ b/src/util/Event.ts @@ -2,7 +2,7 @@ import { Event, EventModel } from "fosscord-server-util"; export async function emitEvent(payload: Omit) { const emitEvent = { - created_at: Math.floor(Date.now() / 1000), // in seconds + created_at: new Date(), // in seconds ...payload, }; -- cgit 1.5.1