From edca7e8da3a01efee821f68d50bcd79e113e5454 Mon Sep 17 00:00:00 2001 From: skeeter Date: Sat, 17 Aug 2002 14:46:01 +0000 Subject: [PATCH] Fix for displaying the incorrect date on the home page. --- calendar/inc/class.bocalendar.inc.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/calendar/inc/class.bocalendar.inc.php b/calendar/inc/class.bocalendar.inc.php index 1ddee25f46..98b3f75dae 100755 --- a/calendar/inc/class.bocalendar.inc.php +++ b/calendar/inc/class.bocalendar.inc.php @@ -202,9 +202,9 @@ 'g_owner' => $this->g_owner ) ); - $localtime = $GLOBALS['phpgw']->datetme->users_localtime; + $localtime = $GLOBALS['phpgw']->datetime->users_localtime; - $date = get_var('date',Array('HTTP_GET_VARS','HTTP_POST_VARS')); + $date = get_var('date',Array('HTTP_GET_VARS','HTTP_POST_VARS','GLOBAL')); $year = get_var('year',Array('HTTP_GET_VARS','HTTP_POST_VARS')); $month = get_var('month',Array('HTTP_GET_VARS','HTTP_POST_VARS')); $day = get_var('day',Array('HTTP_GET_VARS','HTTP_POST_VARS')); @@ -223,7 +223,7 @@ } elseif($this->year == 0) { - $this->year = date('Y',$GLOBALS['phpgw']->datetme->users_localtime); + $this->year = date('Y',$GLOBALS['phpgw']->datetime->users_localtime); } if(isset($month) && $month!='') { @@ -231,7 +231,7 @@ } elseif($this->month == 0) { - $this->month = date('m',$GLOBALS['phpgw']->datetme->users_localtime); + $this->month = date('m',$GLOBALS['phpgw']->datetime->users_localtime); } if(isset($day) && $day!='') { @@ -239,11 +239,11 @@ } elseif($this->day == 0) { - $this->day = date('d',$GLOBALS['phpgw']->datetme->users_localtime); + $this->day = date('d',$GLOBALS['phpgw']->datetime->users_localtime); } } - $this->today = date('Ymd',$GLOBALS['phpgw']->datetime->gmtnow); + $this->today = date('Ymd',$GLOBALS['phpgw']->datetime->users_localtime); if($this->debug) {