Code Duplication    Length = 2-2 lines in 2 locations

Sources/Subs-Calendar.php 2 locations

@@ 1372-1373 (lines=2) @@
1369
	// Define the timezone for this event, falling back to the default if not provided
1370
	if (!empty($eventOptions['tz']) && in_array($eventOptions['tz'], timezone_identifiers_list(DateTimeZone::ALL_WITH_BC)))
1371
		$tz = $eventOptions['tz'];
1372
	elseif (!empty($_POST['tz']) && in_array($_POST['tz'], timezone_identifiers_list(DateTimeZone::ALL_WITH_BC)))
1373
		$tz = $_POST['tz'];
1374
	else
1375
		$tz = getUserTimezone();
1376
@@ 1666-1667 (lines=2) @@
1663
		$smcFunc['db_free_result']($request);
1664
	}
1665
1666
	if (empty($timezone) || !in_array($timezone, timezone_identifiers_list(DateTimeZone::ALL_WITH_BC)))
1667
		$timezone = isset($modSettings['default_timezone']) ? $modSettings['default_timezone'] : date_default_timezone_get();
1668
1669
	if (isset($id_member))
1670
		$member_cache[$id_member] = $timezone;