Replace static calls of DI::app() with DI::apphelper()

This commit is contained in:
Art4 2024-11-06 07:57:43 +00:00
parent 4f16bbe5f5
commit 9074258b78
5 changed files with 8 additions and 12 deletions

View file

@ -284,7 +284,7 @@ function item_process(array $post, array $request, bool $preview, string $return
unset($post['api_source']);
if (!empty($request['scheduled_at'])) {
$scheduled_at = DateTimeFormat::convert($request['scheduled_at'], 'UTC', DI::app()->getTimeZone());
$scheduled_at = DateTimeFormat::convert($request['scheduled_at'], 'UTC', DI::apphelper()->getTimeZone());
if ($scheduled_at > DateTimeFormat::utcNow()) {
unset($post['created']);
unset($post['edited']);