git.cweiske.de
/
grauphel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca08ab1
)
Handle not existing creation date on note object
author
Christian Weiske
<
[email protected]
>
Thu, 7 Jul 2016 15:40:43 +0000
(17:40 +0200)
committer
Christian Weiske
<
[email protected]
>
Thu, 7 Jul 2016 15:40:43 +0000
(17:40 +0200)
lib/notestorage.php
patch
|
blob
|
history
diff --git
a/lib/notestorage.php
b/lib/notestorage.php
index 2ae9fcb405702a9728f63488b268fe5933ae56c2..275374c4ed7f36348cb11c7328cad93fdb1994eb 100644
(file)
--- 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
) {