From 88e56626af0482a1c0c2fb70682107eb6e6bc375 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Fri, 11 Jan 2019 22:29:21 -0700 Subject: [PATCH] API/Note->toArray(): Return UNIX timestamp instead of date string for modified --- lib/Note.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Note.lib.php b/lib/Note.lib.php index ba10299..0ccccba 100644 --- a/lib/Note.lib.php +++ b/lib/Note.lib.php @@ -380,7 +380,7 @@ class Note { 'content' => $this->getText(), 'html' => $this->getHTML(true), 'title' => $this->getTitle(), - 'modified' => $this->getModified(), + 'modified' => strtotime($this->getModified()), 'favorite' => $this->getFavorite(), 'owner' => [ 'uid' => $owner->getUID(),