From 143ea16d7af607cec6ce180c30f4645f94189113 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Thu, 7 Jul 2016 17:40:43 +0200 Subject: [PATCH 1/1] Handle not existing creation date on note object --- lib/notestorage.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/notestorage.php b/lib/notestorage.php index 2ae9fcb..275374c 100644 --- a/lib/notestorage.php +++ b/lib/notestorage.php @@ -120,6 +120,11 @@ class NoteStorage $note->{'last-metadata-change-date'} = date('c'); } + if (!isset($note->{'create-date'})) { + //no idea how to get the microseconds in there + $note->{'create-date'} = date('c'); + } + if (isset($noteUpdate->{'node-content'}) && $note->{'note-content-version'} == 0 ) { -- 2.30.2