Code Duplication    Length = 4-4 lines in 2 locations

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

@@ 980-983 (lines=4) @@
977
				}
978
				$timestamps = array('modified','created','deleted');
979
			}
980
			else
981
			{
982
				$timestamps = array('start','end','modified','created','recur_enddate','recurrence','recur_date','deleted');
983
			}
984
			// we convert here from the server-time timestamps to user-time and (optional) to a different date-format!
985
			foreach ($timestamps as $ts)
986
			{

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

@@ 1250-1253 (lines=4) @@
1247
			// all-day events are handled in server time
1248
		//	$event['tzid'] = $save_event['tzid'] = Api\DateTime::$server_timezone->getName();
1249
		}
1250
		else
1251
		{
1252
			$timestamps = array('start','end','modified','created','recur_enddate','recurrence');
1253
		}
1254
		// we run all dates through date2ts, to adjust to server-time and the possible date-formats
1255
		foreach($timestamps as $ts)
1256
		{