mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-01 11:39:21 +02:00
common: type is now optional in getFormattedDate
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user