From a1d3431770e644d37c0e43c5fc0c89656c0834f5 Mon Sep 17 00:00:00 2001 From: sam Date: Thu, 16 Mar 2023 16:43:28 +0000 Subject: [PATCH] fix: use zero time if user has not exported their data before --- frontend/src/routes/settings/export/+page.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/routes/settings/export/+page.svelte b/frontend/src/routes/settings/export/+page.svelte index 6e491bf..deccf76 100644 --- a/frontend/src/routes/settings/export/+page.svelte +++ b/frontend/src/routes/settings/export/+page.svelte @@ -12,7 +12,7 @@ const createdAt = data.exportData?.created_at ? DateTime.fromISO(data.exportData.created_at).toLocal() - : DateTime.now(); + : DateTime.fromSeconds(0); const now = DateTime.now().toLocal(); const availableFor = Duration.fromObject({ days: 7 });