| @@ 330-334 (lines=5) @@ | ||
| 327 | unset($context['all_timezones']['']); |
|
| 328 | ||
| 329 | // If the event's timezone is not in SMF's standard list of time zones, prepend it to the list |
|
| 330 | if (!in_array($context['event']['tz'], array_keys($context['all_timezones']))) |
|
| 331 | { |
|
| 332 | $d = date_create($context['event']['start_datetime'] . ' ' . $context['event']['tz']); |
|
| 333 | $context['all_timezones'] = array($context['event']['tz'] => fix_tz_abbrev($context['event']['tz'], date_format($d, 'T')) . ' - ' . $context['event']['tz'] . ' [UTC' . date_format($d, 'P') . ']') + $context['all_timezones']; |
|
| 334 | } |
|
| 335 | ||
| 336 | loadCSSFile('jquery-ui.datepicker.css', array('defer' => false), 'smf_datepicker'); |
|
| 337 | loadCSSFile('jquery.timepicker.css', array('defer' => false), 'smf_timepicker'); |
|
| @@ 444-448 (lines=5) @@ | ||
| 441 | unset($context['all_timezones']['']); |
|
| 442 | ||
| 443 | // If the event's timezone is not in SMF's standard list of time zones, prepend it to the list |
|
| 444 | if (!in_array($context['event']['tz'], array_keys($context['all_timezones']))) |
|
| 445 | { |
|
| 446 | $d = date_create($context['event']['start_datetime'] . ' ' . $context['event']['tz']); |
|
| 447 | $context['all_timezones'] = array($context['event']['tz'] => fix_tz_abbrev($context['event']['tz'], date_format($d, 'T')) . ' - ' . $context['event']['tz'] . ' [UTC' . date_format($d, 'P') . ']') + $context['all_timezones']; |
|
| 448 | } |
|
| 449 | ||
| 450 | // Get list of boards that can be posted in. |
|
| 451 | $boards = boardsAllowedTo('post_new'); |
|