A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
common: type is now optional in getFormattedDate
Abdullah Atta7e8e98114562
diff --git a/packages/common/src/utils/time.ts b/packages/common/src/utils/time.tsindex 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,