]> git.mxchange.org Git - friendica.git/commitdiff
Update include/api.php
authorMichael Vogel <icarus@dabo.de>
Fri, 19 Nov 2021 05:05:58 +0000 (06:05 +0100)
committerGitHub <noreply@github.com>
Fri, 19 Nov 2021 05:05:58 +0000 (06:05 +0100)
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
include/api.php

index ddb224d2111e2b18f386d649d93106e2c39fd394..d1ff1458ed06f1cc64e49476d21c159f8ea17289 100644 (file)
@@ -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,