mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
* Notifications: fixed not correctly reset timezone after notifying users from other timezones
This commit is contained in:
parent
26bebbedd9
commit
980768c443
@ -551,7 +551,14 @@ abstract class bo_tracking
|
||||
}
|
||||
|
||||
// restore the user enviroment
|
||||
if ($this->save_prefs) $GLOBALS['egw_info']['user'] = $this->save_prefs; unset($this->save_prefs);
|
||||
if ($this->save_prefs)
|
||||
{
|
||||
$GLOBALS['egw_info']['user'] = $this->save_prefs;
|
||||
// need to call preferences constructor and read_repository, to set user timezone again
|
||||
$GLOBALS['egw']->preferences->__construct($GLOBALS['egw_info']['user']['account_id']);
|
||||
$GLOBALS['egw_info']['user']['preferences'] = $GLOBALS['egw']->preferences->read_repository(false); // no session prefs!
|
||||
unset($this->save_prefs);
|
||||
}
|
||||
if ($GLOBALS['egw_info']['user']['preferences']['common']['lang'] != translation::$userlang)
|
||||
{
|
||||
translation::init();
|
||||
|
Loading…
Reference in New Issue
Block a user