From cd8468769ee23f245658f34f2fbba23a4848fe3b Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Mon, 27 Nov 2023 10:46:20 +0100 Subject: [PATCH] syn2mas: fix timestamp conversion on emails --- tools/syn2mas/src/migrate.mts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/syn2mas/src/migrate.mts b/tools/syn2mas/src/migrate.mts index 6934f3858..39c9bfc9c 100644 --- a/tools/syn2mas/src/migrate.mts +++ b/tools/syn2mas/src/migrate.mts @@ -255,9 +255,7 @@ export async function migrate(): Promise { ); continue; } - const threePidCreatedAt = new Date( - parseInt(`${threePid.added_at}`) * 1000, - ); + const threePidCreatedAt = new Date(parseInt(`${threePid.added_at}`)); const masUserEmail: MUserEmail = { user_email_id: makeUuid(threePidCreatedAt), user_id: masUser.user_id, @@ -267,7 +265,7 @@ export async function migrate(): Promise { if (threePid.validated_at) { masUserEmail.confirmed_at = new Date( - parseInt(`${threePid.validated_at}`) * 1000, + parseInt(`${threePid.validated_at}`), ); }