Fix changing status sometimes changed time(zone)

This commit is contained in:
Nathan Gray 2016-02-10 00:19:55 +00:00
parent 8c2bee191a
commit 26f4c6556b

View File

@ -994,6 +994,11 @@ class calendar_boupdate extends calendar_bo
$GLOBALS['egw_info']['user']['preferences'] = $GLOBALS['egw']->preferences->read_repository();
//echo "<p>".__METHOD__."() restored enviroment of #$temp_user[account_id] $temp_user[account_fullname]: tz={$GLOBALS['egw_info']['user']['preferences']['common']['tz']}</p>\n";
}
else
{
// Loading other user's preferences can change current user's tz
$GLOBALS['egw']->preferences->check_set_tz_offset();
}
if ($lang !== $GLOBALS['egw_info']['user']['preferences']['common']['lang'])
{
translation::init();