Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

common: type is now optional in getFormattedDate

Abdullah Atta7e8e98114562
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,