Code Duplication    Length = 4-4 lines in 2 locations

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

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

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

@@ 999-1002 (lines=4) @@
996
				}
997
				$timestamps = array('modified','created','deleted');
998
			}
999
			else
1000
			{
1001
				$timestamps = array('start','end','modified','created','recur_enddate','recurrence','recur_date','deleted');
1002
			}
1003
			// we convert here from the server-time timestamps to user-time and (optional) to a different date-format!
1004
			foreach ($timestamps as $ts)
1005
			{