mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Using the newer datetime class.
This commit is contained in:
parent
3c51862e9c
commit
8a0cbcbab1
@ -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');
|
||||
}
|
||||
|
||||
Header('Location: '.$GLOBALS['phpgw']->link('/index.php','menuaction=calendar.uicalendar.index&date='.date('Ymd')));
|
||||
$parms = Array(
|
||||
'menuaction'=> 'calendar.uicalendar.index',
|
||||
'date' => date('Ymd',$GLOBALS['phpgw']->datetime->users_localtime)
|
||||
);
|
||||
|
||||
Header('Location: '.$GLOBALS['phpgw']->link('/index.php',$parms));
|
||||
$GLOBALS['phpgw']->common->phpgw_exit();
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user