From 8a0cbcbab17457c0d7fecb1eb812b72466f51f0b Mon Sep 17 00:00:00 2001 From: skeeter Date: Sun, 23 Jun 2002 18:17:08 +0000 Subject: [PATCH] Using the newer datetime class. --- calendar/index.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/calendar/index.php b/calendar/index.php index 9a5217a524..3fc9006138 100755 --- a/calendar/index.php +++ b/calendar/index.php @@ -26,7 +26,16 @@ $GLOBALS['phpgw_info']['flags'] = $phpgw_flags; include('../header.inc.php'); + if(!is_object($GLOBALS['phpgw']->datetime)) + { + $GLOBALS['phpgw']->datetime = CreateObject('phpgwapi.datetime'); + } + + $parms = Array( + 'menuaction'=> 'calendar.uicalendar.index', + 'date' => date('Ymd',$GLOBALS['phpgw']->datetime->users_localtime) + ); - Header('Location: '.$GLOBALS['phpgw']->link('/index.php','menuaction=calendar.uicalendar.index&date='.date('Ymd'))); + Header('Location: '.$GLOBALS['phpgw']->link('/index.php',$parms)); $GLOBALS['phpgw']->common->phpgw_exit(); ?>