File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change 46
46
<div class =" uk-form-controls" >
47
47
<select id =" timezone" name =" timezone" class =" uk-select" placeholder =" Click here to select one of the available commands" >
48
48
@foreach ($timezones as $key => $timezone )
49
- <option value =" {{ $timezone } }" {{ old (' timezone' , $task -> timezone ) == $timezone ? ' selected' : ' ' } } >{{ $timezone } } </option >
49
+ <option value =" {{ $timezone } }" {{ old (' timezone' , $task -> exists ? $task -> timezone : config ( ' app.timezone ' ) ) == $timezone ? ' selected' : ' ' } } >{{ $timezone } } </option >
50
50
@endforeach
51
51
</select >
52
52
</div >
Original file line number Diff line number Diff line change @@ -24,11 +24,6 @@ class Task extends Model
24
24
'upcoming ' ,
25
25
];
26
26
27
- public function setTimezoneAttribute ($ value )
28
- {
29
- return $ this ->attributes ['timezone ' ] = $ value ?: config ('app.timezone ' );
30
- }
31
-
32
27
public function getActivatedAttribute ()
33
28
{
34
29
return $ this ->is_active ;
You can’t perform that action at this time.
0 commit comments