fixed time calculated for ical messages (bug #8765444)

This commit is contained in:
alpeb 2004-01-28 20:24:02 +00:00
parent 28a0a7e01a
commit dd148e2cf9

View File

@ -3417,13 +3417,10 @@
// use system's date info for caluculating local timezone's offset in minutes
//
$gmt_offset = date('O',$GLOBALS['phpgw']->datetime->users_localtime); // offset to GMT
$offset = (int)(substr($gmt_offset, 1, 2)) * 60 + (int)(substr($gmt_offset, 3, 2));
if ($offset > 0)
{
$event['start']['min'] -= $offset;
$event['end']['min'] -= $offset;
$event['modtime']['min'] -= $offset;
}
$offset = (int)(substr($gmt_offset, 0, 3)) * 60 + (int)(substr($gmt_offset, 3, 2));
$event['start']['min'] -= $offset;
$event['end']['min'] -= $offset;
$event['modtime']['min'] -= $offset;
$ical_event['priority'] = $event['priority'];
$ical_event['class'] = (int)$event['public'];