From 7e8e981145628654ec832635a0ccf736adaa9bc2 Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Mon, 13 Nov 2023 10:18:21 +0500 Subject: [PATCH] common: type is now optional in getFormattedDate --- packages/common/src/utils/time.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/common/src/utils/time.ts b/packages/common/src/utils/time.ts index 8bc5b3b62..7a62b012f 100644 --- a/packages/common/src/utils/time.ts +++ b/packages/common/src/utils/time.ts @@ -28,7 +28,7 @@ import { Reminder } from "@notesnook/core/dist/types"; export function getFormattedDate( date: string | number | Date, - type: FormatDateOptions["type"] + type: FormatDateOptions["type"] = "date-time" ) { return formatDate(date, { dateFormat: database.settings?.getDateFormat() as string,