mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 02:14:45 +01:00
for readonly version we only need to fetch given timezone, automatic conversion from id
This commit is contained in:
parent
cc113b3519
commit
c1718a29ad
@ -466,7 +466,18 @@ class select_widget
|
||||
break;
|
||||
|
||||
case 'select-timezone': // options: #rows,$type
|
||||
if (is_numeric($value))
|
||||
{
|
||||
$value = calendar_timezones::id2tz($value);
|
||||
}
|
||||
if ($readonly) // for readonly we dont need to fetch all TZ's
|
||||
{
|
||||
$cell['sel_options'][$value] = calendar_timezones::tz2id($value,'name');
|
||||
}
|
||||
else
|
||||
{
|
||||
$cell['sel_options'] = $type ? egw_time::getTimezones() : egw_time::getUserTimezones($value);
|
||||
}
|
||||
break;
|
||||
}
|
||||
if ($rows > 1)
|
||||
|
Loading…
Reference in New Issue
Block a user