]> git.mxchange.org Git - friendica.git/commitdiff
Display the publish time in the local timezone
authorMichael Vogel <icarus@dabo.de>
Wed, 4 Aug 2021 05:58:07 +0000 (07:58 +0200)
committerMichael Vogel <icarus@dabo.de>
Wed, 4 Aug 2021 05:58:07 +0000 (07:58 +0200)
src/Module/Profile/Schedule.php

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