constructor of datetime need to be called after preferences are read (again), otherwise the tz-offset is not set - easy to verify from the other end of the world ;-)

This commit is contained in:
Ralf Becker 2005-12-14 06:41:27 +00:00
parent 57998e5827
commit 5ddc4a4f85

View File

@ -940,6 +940,10 @@
$this->user = $GLOBALS['egw']->accounts->read_repository(); $this->user = $GLOBALS['egw']->accounts->read_repository();
$this->user['acl'] = $GLOBALS['egw']->acl->read_repository(); $this->user['acl'] = $GLOBALS['egw']->acl->read_repository();
$this->user['preferences'] = $GLOBALS['egw']->preferences->read_repository(); $this->user['preferences'] = $GLOBALS['egw']->preferences->read_repository();
if (is_object($GLOBALS['egw']->datetime))
{
$GLOBALS['egw']->datetime->datetime(); // to set tz_offset from the now read prefs
}
$this->user['apps'] = $GLOBALS['egw']->applications->read_repository(); $this->user['apps'] = $GLOBALS['egw']->applications->read_repository();
//@reset($this->data['user']['apps']); //@reset($this->data['user']['apps']);