mirror of
https://github.com/friendica/friendica
synced 2025-04-19 05:50:10 +00:00
Replace static calls of DI::app() with DI::apphelper()
This commit is contained in:
parent
4f16bbe5f5
commit
9074258b78
5 changed files with 8 additions and 12 deletions
|
@ -59,11 +59,11 @@ class Create extends BaseApi
|
|||
$finish = DBA::NULL_DATETIME;
|
||||
$nofinish = true;
|
||||
} else {
|
||||
$finish = DateTimeFormat::convert($request['end_time'], 'UTC', DI::app()->getTimeZone());
|
||||
$finish = DateTimeFormat::convert($request['end_time'], 'UTC', DI::apphelper()->getTimeZone());
|
||||
$nofinish = false;
|
||||
}
|
||||
|
||||
$start = DateTimeFormat::convert($request['start_time'], 'UTC', DI::app()->getTimeZone());
|
||||
$start = DateTimeFormat::convert($request['start_time'], 'UTC', DI::apphelper()->getTimeZone());
|
||||
|
||||
// create event
|
||||
$event = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue