mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-20 21:08:54 +01:00
for readonly version we only need to fetch given timezone, automatic conversion from id
This commit is contained in:
parent
1a7eee9af8
commit
2cc88e8ae5
@ -444,7 +444,18 @@ class select_widget
|
||||
break;
|
||||
|
||||
case 'select-timezone': // options: #rows,$type
|
||||
$cell['sel_options'] = $type ? egw_time::getTimezones() : egw_time::getUserTimezones($value);
|
||||
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