Skip to content

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

core: make dateFormat optional

Abdullah Attacb778d7e3577
diff --git a/packages/core/src/utils/date.js b/packages/core/src/utils/date.js
index bb4568a08..5aa1c671b 100644
--- a/packages/core/src/utils/date.js
+++ b/packages/core/src/utils/date.js
@@ -70,7 +70,7 @@ export function getTimeFormat(format) {
/**
*
* @param {string | number | Date | null | undefined} date
- * @param {{dateFormat: string, timeFormat?: string, type: "date-time" | "time" | "date"}} options
+ * @param {{dateFormat?: string, timeFormat?: string, type: "date-time" | "time" | "date"}} options
* @returns
*/
export function formatDate(