Re-init egw_time so it gets the appropriate preferences for the notification

This commit is contained in:
Nathan Gray 2013-03-18 23:41:10 +00:00
parent ab601bf94c
commit e7b7b78e92

View File

@ -635,6 +635,9 @@ abstract class bo_tracking
$GLOBALS['egw']->preferences->__construct($GLOBALS['egw_info']['user']['account_id']); $GLOBALS['egw']->preferences->__construct($GLOBALS['egw_info']['user']['account_id']);
$GLOBALS['egw_info']['user']['preferences'] = $GLOBALS['egw']->preferences->read_repository(false); // no session prefs! $GLOBALS['egw_info']['user']['preferences'] = $GLOBALS['egw']->preferences->read_repository(false); // no session prefs!
unset($this->save_prefs); unset($this->save_prefs);
// Re-load date/time preferences
egw_time::init();
} }
if ($GLOBALS['egw_info']['user']['preferences']['common']['lang'] != translation::$userlang) if ($GLOBALS['egw_info']['user']['preferences']['common']['lang'] != translation::$userlang)
{ {
@ -695,6 +698,9 @@ abstract class bo_tracking
translation::init(); translation::init();
} }
// Load date/time preferences into egw_time
egw_time::init();
// Cache message body to not have to re-generate it every time // Cache message body to not have to re-generate it every time
static $body_cache = array(); static $body_cache = array();
$lang = translation::$userlang; $lang = translation::$userlang;