From f0d17f033d91a08bee972ca5ad841a53e07e556d Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Mon, 4 Oct 2010 07:40:30 +0000 Subject: [PATCH] backport of forgotten servertime time var now, as reportet in developerlist --- calendar/inc/class.calendar_bo.inc.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/calendar/inc/class.calendar_bo.inc.php b/calendar/inc/class.calendar_bo.inc.php index 8f5e7f2166..21ff4c4c6d 100644 --- a/calendar/inc/class.calendar_bo.inc.php +++ b/calendar/inc/class.calendar_bo.inc.php @@ -66,6 +66,11 @@ class calendar_bo */ var $debug=false; + /** + * @var int $now servertime + */ + var $now; + /** * @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->cal_prefs =& $GLOBALS['egw_info']['user']['preferences']['calendar']; + $this->now = time(); $this->now_su = egw_time::to('now','ts'); $this->user = $GLOBALS['egw_info']['user']['account_id'];