Beta feedback: mailbox permalink dates are in unix time, not JS time

This commit is contained in:
Ben Gotow 2019-06-17 01:08:41 -05:00
parent 763232b177
commit adbae6657c

View file

@ -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}`;
}
}