Code Duplication    Length = 4-4 lines in 2 locations

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

@@ 869-872 (lines=4) @@
866
				}
867
				$timestamps = array('modified','created');
868
			}
869
			else
870
			{
871
				$timestamps = array('start','end','modified','created','recur_enddate','recurrence');
872
			}
873
			// we convert here from the server-time timestamps to user-time and (optional) to a different date-format!
874
			foreach ($timestamps as $ts)
875
			{

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

@@ 1314-1317 (lines=4) @@
1311
			// all-day events are handled in server time
1312
			$event['tzid'] = $save_event['tzid'] = egw_time::$server_timezone->getName();
1313
		}
1314
		else
1315
		{
1316
			$timestamps = array('start','end','modified','created','recur_enddate','recurrence');
1317
		}
1318
		// we run all dates through date2ts, to adjust to server-time and the possible date-formats
1319
		foreach($timestamps as $ts)
1320
		{