diff --git a/src/db/tables/index.ts b/src/db/tables/index.ts index eb9a2457c..2c944a29e 100644 --- a/src/db/tables/index.ts +++ b/src/db/tables/index.ts @@ -1,6 +1,6 @@ export type Account = { id?: number; // auto-generated by Dexie - dateCreated: Date; + dateCreated: string; derivationPath: string; identity: string; publicKeyHex: string; diff --git a/src/views/AccountViewView.vue b/src/views/AccountViewView.vue index 00f57631f..06d1b6a16 100644 --- a/src/views/AccountViewView.vue +++ b/src/views/AccountViewView.vue @@ -247,7 +247,7 @@ export default class AccountViewView extends Vue { this.derivationPath ); await db.accounts.add({ - dateCreated: new Date(), + dateCreated: new Date().toISOString(), derivationPath: this.derivationPath, identity: JSON.stringify(newId), mnemonic: this.mnemonic, diff --git a/src/views/ImportAccountView.vue b/src/views/ImportAccountView.vue index 873856681..73a7359b4 100644 --- a/src/views/ImportAccountView.vue +++ b/src/views/ImportAccountView.vue @@ -79,7 +79,7 @@ export default class ImportAccountView extends Vue { const num_accounts = await db.accounts.count(); if (num_accounts === 0) { await db.accounts.add({ - dateCreated: new Date(), + dateCreated: new Date().toISOString(), derivationPath: this.derivationPath, identity: JSON.stringify(newId), mnemonic: mne,