Code Duplication    Length = 2-2 lines in 2 locations

Sources/Subs-Calendar.php 2 locations

@@ 1354-1355 (lines=2) @@
1351
	// Define the timezone for this event, falling back to the default if not provided
1352
	if (!empty($eventOptions['tz']) && in_array($eventOptions['tz'], timezone_identifiers_list(DateTimeZone::ALL_WITH_BC)))
1353
		$tz = $eventOptions['tz'];
1354
	elseif (!empty($_POST['tz']) && in_array($_POST['tz'], timezone_identifiers_list(DateTimeZone::ALL_WITH_BC)))
1355
		$tz = $_POST['tz'];
1356
	else
1357
		$tz = getUserTimezone();
1358
@@ 1640-1641 (lines=2) @@
1637
		$smcFunc['db_free_result']($request);
1638
	}
1639
1640
	if (empty($timezone) || !in_array($timezone, timezone_identifiers_list(DateTimeZone::ALL_WITH_BC)))
1641
		$timezone = isset($modSettings['default_timezone']) ? $modSettings['default_timezone'] : date_default_timezone_get();
1642
1643
	if (isset($id_member))
1644
		$member_cache[$id_member] = $timezone;