Update inbox fix

This commit is contained in:
Manish Verma
2018-08-09 16:57:57 +05:30
parent 3c24de643c
commit 02b4b42363
3 changed files with 20 additions and 13 deletions

View File

@@ -211,3 +211,14 @@ function faveoDate($date = '', $format = '', $tz = '')
return 'invalid';
}
}
function timezone()
{
$system = App\Model\helpdesk\Settings\System::select('time_zone')->first();
$tz = 'UTC';
if ($system) {
$tz = App\Model\helpdesk\Utility\Timezones::where('id', $system->time_zone)->first()->name;
}
return $tz;
}