From 7403b9a61a75bbd0ea68a8a4638a8f01f4e10601 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Thu, 1 Oct 2020 13:38:19 +0300 Subject: [PATCH] Migration: set collection mtime when creating the first collections. --- src/MigrateV2.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/MigrateV2.tsx b/src/MigrateV2.tsx index df68d97..489fcd8 100644 --- a/src/MigrateV2.tsx +++ b/src/MigrateV2.tsx @@ -447,11 +447,13 @@ export function WizardMigrationPage(props: OurPagePropsType) { continue; } } + const mtime = (new Date()).getTime(); const meta: Etebase.CollectionMetadata = { type: colType, name: info.displayName, description: info.description, color: (info.color !== undefined) ? colorIntToHtml(info.color) : undefined, + mtime, }; const collection = await colMgr.create(meta, ""); await colMgr.upload(collection);