Fixed task bug
This commit is contained in:
parent
4d71b193d6
commit
5bf287f51a
1 changed files with 2 additions and 2 deletions
|
|
@ -137,7 +137,7 @@ class TaskController extends BaseController
|
|||
'url' => 'tasks',
|
||||
'title' => trans('texts.new_task'),
|
||||
'timezone' => Auth::user()->account->timezone->name,
|
||||
'datetimeFormat' => Auth::user()->account->datetime_format->format_moment
|
||||
'datetimeFormat' => Auth::user()->account->datetime_format ? Auth::user()->account->datetime_format->format_moment : 'DD/MMM/YYYY h:mm:ss a'
|
||||
];
|
||||
|
||||
$data = array_merge($data, self::getViewModel());
|
||||
|
|
@ -188,7 +188,7 @@ class TaskController extends BaseController
|
|||
'duration' => $task->is_running ? $task->getCurrentDuration() : $task->getDuration(),
|
||||
'actions' => $actions,
|
||||
'timezone' => Auth::user()->account->timezone->name,
|
||||
'datetimeFormat' => Auth::user()->account->datetime_format->format_moment
|
||||
'datetimeFormat' => Auth::user()->account->datetime_format ? Auth::user()->account->datetime_format->format_moment : 'DD/MMM/YYYY h:mm:ss a'
|
||||
];
|
||||
|
||||
$data = array_merge($data, self::getViewModel());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue