|
@@ 1231-1232 (lines=2) @@
|
| 1228 |
|
// Define the timezone for this event, falling back to the default if not provided |
| 1229 |
|
if (!empty($eventOptions['tz']) && in_array($eventOptions['tz'], timezone_identifiers_list(DateTimeZone::ALL_WITH_BC))) |
| 1230 |
|
$tz = $eventOptions['tz']; |
| 1231 |
|
elseif (!empty($_POST['tz']) && in_array($_POST['tz'], timezone_identifiers_list(DateTimeZone::ALL_WITH_BC))) |
| 1232 |
|
$tz = $_POST['tz']; |
| 1233 |
|
else |
| 1234 |
|
$tz = getUserTimezone(); |
| 1235 |
|
|
|
@@ 1525-1526 (lines=2) @@
|
| 1522 |
|
$smcFunc['db_free_result']($request); |
| 1523 |
|
} |
| 1524 |
|
|
| 1525 |
|
if (empty($timezone) || !in_array($timezone, timezone_identifiers_list(DateTimeZone::ALL_WITH_BC))) |
| 1526 |
|
$timezone = isset($modSettings['default_timezone']) ? $modSettings['default_timezone'] : date_default_timezone_get(); |
| 1527 |
|
|
| 1528 |
|
return $timezone; |
| 1529 |
|
} |