mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-10 16:08:34 +01:00
fixed time calculated for ical messages (bug #8765444)
This commit is contained in:
parent
28a0a7e01a
commit
dd148e2cf9
@ -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)
|
||||
{
|
||||
$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'];
|
||||
|
Loading…
Reference in New Issue
Block a user