API/Note->toArray(): Return UNIX timestamp instead of date string for modified

This commit is contained in:
Skylar Ittner 2019-01-11 22:29:21 -07:00
parent be39e37f9c
commit 88e56626af

View File

@ -380,7 +380,7 @@ class Note {
'content' => $this->getText(), 'content' => $this->getText(),
'html' => $this->getHTML(true), 'html' => $this->getHTML(true),
'title' => $this->getTitle(), 'title' => $this->getTitle(),
'modified' => $this->getModified(), 'modified' => strtotime($this->getModified()),
'favorite' => $this->getFavorite(), 'favorite' => $this->getFavorite(),
'owner' => [ 'owner' => [
'uid' => $owner->getUID(), 'uid' => $owner->getUID(),