mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
Fix drag and dropped events in a different timezone get set to the wrong time
This commit is contained in:
parent
e1d60f6729
commit
18a7c47b95
@ -714,7 +714,7 @@ class calendar_uiforms extends calendar_ui
|
||||
unset($recur_event['start']); unset($recur_event['end']); // no update necessary
|
||||
unset($recur_event['alarm']); // unsetting alarms too, as they cant be updated without start!
|
||||
$this->bo->update($recur_event,true); // no conflict check here
|
||||
foreach($recur_event as $_k => $_v) error_log($_k . ': ' . array2string($_v));
|
||||
|
||||
unset($recur_event);
|
||||
unset($event['edit_single']); // if we further edit it, it's just a single event
|
||||
unset($preserv['edit_single']);
|
||||
@ -2770,9 +2770,10 @@ foreach($recur_event as $_k => $_v) error_log($_k . ': ' . array2string($_v));
|
||||
}
|
||||
}
|
||||
|
||||
$event['start'] = $this->bo->date2ts($targetDateTime);
|
||||
$d = new egw_time($targetDateTime, egw_time::$user_timezone);
|
||||
$event['start'] = $d->format('ts');
|
||||
$event['end'] = $event['start']+$duration;
|
||||
|
||||
|
||||
if ($event['recur_type'] != MCAL_RECUR_NONE && !$date && $seriesInstance)
|
||||
{
|
||||
// calculate offset against clicked recurrance,
|
||||
|
Loading…
Reference in New Issue
Block a user