diff --git a/src/components/migrator/migration.vue b/src/components/migrator/migration.vue index fda96cd1..74455afd 100644 --- a/src/components/migrator/migration.vue +++ b/src/components/migrator/migration.vue @@ -23,9 +23,9 @@

Importing in progress, hang tight...

-
+

- It looks like you've already imported your stuff from {{ name }} at {{ new Date(lastMigrationDate * 1000) }}.
+ It looks like you've already imported your stuff from {{ name }} at {{ formatDate(lastMigrationDate) }}.
Importing again is possible, but might create duplicates. Are you sure?

@@ -54,7 +54,7 @@ return { authUrl: '', isMigrating: false, - lastMigrationDate: 0, + lastMigrationDate: null, message: '', wunderlistCode: '', } @@ -78,8 +78,8 @@ this.wunderlistCode = this.$route.query.code this.migrationService.getStatus() .then(r => { - if(r.time_unix > 0) { - this.lastMigrationDate = r.time_unix + if(r.time_unix) { + this.lastMigrationDate = new Date(r.time_unix) return } this.migrate()