backport of forgotten servertime time var now, as reportet in developerlist

This commit is contained in:
Klaus Leithoff 2010-10-04 07:40:30 +00:00
parent 8fba4444e5
commit f0d17f033d

View File

@ -66,6 +66,11 @@ class calendar_bo
*/ */
var $debug=false; var $debug=false;
/**
* @var int $now servertime
*/
var $now;
/** /**
* @var int $now_su timestamp of actual user-time * @var int $now_su timestamp of actual user-time
*/ */
@ -189,6 +194,7 @@ class calendar_bo
$this->common_prefs =& $GLOBALS['egw_info']['user']['preferences']['common']; $this->common_prefs =& $GLOBALS['egw_info']['user']['preferences']['common'];
$this->cal_prefs =& $GLOBALS['egw_info']['user']['preferences']['calendar']; $this->cal_prefs =& $GLOBALS['egw_info']['user']['preferences']['calendar'];
$this->now = time();
$this->now_su = egw_time::to('now','ts'); $this->now_su = egw_time::to('now','ts');
$this->user = $GLOBALS['egw_info']['user']['account_id']; $this->user = $GLOBALS['egw_info']['user']['account_id'];