diff --git a/include/api.php b/include/api.php index ddb224d211..d1ff1458ed 100644 --- a/include/api.php +++ b/include/api.php @@ -1814,7 +1814,7 @@ function api_format_messages($item, $recipient, $sender) 'sender_id' => $sender['id'], 'text' => "", 'recipient_id' => $recipient['id'], - 'created_at' => DateTimeFormat::utc($item['created'] ?? DateTimeFormat::utcNow(), DateTimeFormat::API), + 'created_at' => DateTimeFormat::utc($item['created'] ?? 'now', DateTimeFormat::API), 'sender_screen_name' => $sender['screen_name'], 'recipient_screen_name' => $recipient['screen_name'], 'sender' => $sender,