1
0
Fork 0
forked from mirror/pixelfed

Update AP helpers, enforce UTC

This commit is contained in:
Daniel Supernault 2022-05-13 23:13:30 -06:00
parent d91884b6ea
commit 18931a1ffc
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -470,7 +470,7 @@ class Helpers {
$status->object_url = $id;
$status->caption = strip_tags($activity['content']);
$status->rendered = Purify::clean($activity['content']);
$status->created_at = Carbon::parse($ts);
$status->created_at = Carbon::parse($ts)->tz('UTC');
$status->in_reply_to_id = $reply_to;
$status->local = false;
$status->is_nsfw = $cw;
@ -580,7 +580,7 @@ class Helpers {
$status->object_url = $id;
$status->caption = strip_tags($res['content']);
$status->rendered = Purify::clean($res['content']);
$status->created_at = Carbon::parse($ts);
$status->created_at = Carbon::parse($ts)->tz('UTC');
$status->in_reply_to_id = null;
$status->local = false;
$status->is_nsfw = $cw;