From 4a07e58c1653eef8f544594189a4af4c66e3b1e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Sun, 25 Nov 2018 21:03:05 +0100 Subject: [PATCH] fix expand + requery --- web/api/expand.php | 2 +- web/api/requery.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/api/expand.php b/web/api/expand.php index 4a525b0..531b9c5 100644 --- a/web/api/expand.php +++ b/web/api/expand.php @@ -45,7 +45,7 @@ api_return(200, 'body' => $msg['content'], 'trimmed' => false, 'priority' => $msg['priority'], - 'timestamp' => strtotime($msg['timestamp']), + 'timestamp' => $msg['sendtime'], 'usr_msg_id' => $msg['usr_message_id'], 'scn_msg_id' => $msg['scn_message_id'], ], diff --git a/web/api/requery.php b/web/api/requery.php index d619af7..de3b017 100644 --- a/web/api/requery.php +++ b/web/api/requery.php @@ -41,7 +41,7 @@ foreach ($nonacks_sql as $nack) 'title' => $nack['title'], 'body' => $nack['content'], 'priority' => $nack['priority'], - 'timestamp' => strtotime($nack['timestamp']), + 'timestamp' => $nack['sendtime'], 'usr_msg_id' => $nack['usr_message_id'], 'scn_msg_id' => $nack['scn_message_id'], ];