Skip to content

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

add date on editor

ammarahm-edc74ff4de90dc
diff --git a/apps/mobile/src/views/Editor/index.js b/apps/mobile/src/views/Editor/index.js
index 2e581688e..bb07e169d 100755
--- a/apps/mobile/src/views/Editor/index.js
+++ b/apps/mobile/src/views/Editor/index.js
@@ -295,6 +295,7 @@ const Editor = ({navigation, noMenu}) => {
}`;
const timeConverter = timestamp => {
+ if (!timestamp) return;
var d = new Date(timestamp), // Convert the passed timestamp to milliseconds
yyyy = d.getFullYear(),
mm = ('0' + (d.getMonth() + 1)).slice(-2), // Months are zero based. Add leading 0.