Merge pull request #10571 from annando/local

Display the publish time in the local timezone
This commit is contained in:
Tobias Diekershoff 2021-08-04 09:45:27 +02:00 committed by GitHub
commit 3d2a5ddf7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,6 +29,7 @@ use Friendica\DI;
use Friendica\Model\Post; use Friendica\Model\Post;
use Friendica\Module\BaseProfile; use Friendica\Module\BaseProfile;
use Friendica\Network\HTTPException; use Friendica\Network\HTTPException;
use Friendica\Util\DateTimeFormat;
class Schedule extends BaseProfile class Schedule extends BaseProfile
{ {
@ -68,7 +69,7 @@ class Schedule extends BaseProfile
} }
$schedule[] = [ $schedule[] = [
'id' => $row['id'], 'id' => $row['id'],
'scheduled_at' => $row['delayed'], 'scheduled_at' => DateTimeFormat::local($row['delayed']),
'content' => BBCode::toPlaintext($parameter['item']['body'], false) 'content' => BBCode::toPlaintext($parameter['item']['body'], false)
]; ];
} }