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'], ];