@@ 1655-1656 (lines=2) @@ | ||
1652 | $smcFunc['db_free_result']($request); |
|
1653 | } |
|
1654 | ||
1655 | if (empty($timezone) || !in_array($timezone, timezone_identifiers_list(DateTimeZone::ALL_WITH_BC))) |
|
1656 | $timezone = isset($modSettings['default_timezone']) ? $modSettings['default_timezone'] : date_default_timezone_get(); |
|
1657 | ||
1658 | if (isset($id_member)) |
|
1659 | $member_cache[$id_member] = $timezone; |
|
@@ 1361-1362 (lines=2) @@ | ||
1358 | // Define the timezone for this event, falling back to the default if not provided |
|
1359 | if (!empty($eventOptions['tz']) && in_array($eventOptions['tz'], timezone_identifiers_list(DateTimeZone::ALL_WITH_BC))) |
|
1360 | $tz = $eventOptions['tz']; |
|
1361 | elseif (!empty($_POST['tz']) && in_array($_POST['tz'], timezone_identifiers_list(DateTimeZone::ALL_WITH_BC))) |
|
1362 | $tz = $_POST['tz']; |
|
1363 | else |
|
1364 | $tz = getUserTimezone(); |
|
1365 |