Skip to content

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

mobile: fix date format not updated in editor

Ammar Ahmed2f3e5cb5cfc1
diff --git a/apps/mobile/app/screens/editor/tiptap/use-editor-events.tsx b/apps/mobile/app/screens/editor/tiptap/use-editor-events.tsx
index 4bac6fc6a..fecff1cbb 100644
--- a/apps/mobile/app/screens/editor/tiptap/use-editor-events.tsx
+++ b/apps/mobile/app/screens/editor/tiptap/use-editor-events.tsx
@@ -230,9 +230,9 @@ export const useEditorEvents = (
? parseInt(defaultFontSize)
: defaultFontSize,
fontFamily: SettingsService.get().defaultFontFamily,
- dateFormat: db.settings?.getDateFormat(),
- timeFormat: db.settings?.getTimeFormat(),
- dayFormat: db.settings?.getDayFormat(),
+ dateFormat: dateFormat,
+ timeFormat: timeFormat,
+ dayFormat: dayFormat,
fontScale,
markdownShortcuts,
features,