mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-26 21:01:52 +02:00
backport of forgotten servertime time var now, as reportet in developerlist
This commit is contained in:
parent
8fba4444e5
commit
f0d17f033d
@ -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'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user