Code Duplication    Length = 5-9 lines in 2 locations

calendar/inc/class.calendar_uiforms.inc.php 1 location

@@ 1452-1460 (lines=9) @@
1449
				$preserv['actual_date'] = $event['start'];		// remember the date clicked
1450
				if ($event['recur_type'] != MCAL_RECUR_NONE)
1451
				{
1452
					if (empty($event['whole_day']))
1453
					{
1454
						$date = $_GET['date'];
1455
					}
1456
					else
1457
					{
1458
						$date = $this->bo->so->startOfDay(new egw_time($_GET['date'], egw_time::$user_timezone));
1459
						$date->setUser();
1460
					}
1461
					$event = $this->bo->read($cal_id, $date, true);
1462
					$preserv['actual_date'] = $event['start'];		// remember the date clicked
1463
					if ($_GET['exception'])

calendar/inc/class.calendar_boupdate.inc.php 1 location

@@ 1298-1302 (lines=5) @@
1295
				$event['end'] = egw_time::to($time, 'ts');
1296
				$save_event['end'] = $time;
1297
			}
1298
			if (!empty($event['recurrence']))
1299
			{
1300
				$time = $this->so->startOfDay(new egw_time($event['recurrence'], egw_time::$user_timezone));
1301
				$event['recurrence'] = egw_time::to($time, 'ts');
1302
			}
1303
			if (!empty($event['recur_enddate']))
1304
			{
1305
				$time = $this->so->startOfDay(new egw_time($event['recur_enddate'], egw_time::$user_timezone));