From adbae6657c76e456512089ee474f0bcc1230f83f Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Mon, 17 Jun 2019 01:08:41 -0500 Subject: [PATCH] Beta feedback: mailbox permalink dates are in unix time, not JS time --- app/src/flux/models/thread.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/flux/models/thread.ts b/app/src/flux/models/thread.ts index 0721412aa..ed09fe85b 100644 --- a/app/src/flux/models/thread.ts +++ b/app/src/flux/models/thread.ts @@ -218,6 +218,7 @@ export class Thread extends ModelWithMetadata { getMailboxPermalink() { const subject = encodeURIComponent(this.subject); - return `mailspring://thread?subject=${subject}&date=${this.firstMessageTimestamp.getTime()}`; + const date = Math.floor(this.firstMessageTimestamp.getTime() / 1000); + return `mailspring://thread?subject=${subject}&date=${date}`; } }