You are here

function _date_ical_tz in Date 5

2 calls to _date_ical_tz()
date_ical_import in ./date_ical.inc
Given the location of a valid iCalendar file, will return an array of event information
_date_ical_chooseOffset in ./date_ical.inc

File

./date_ical.inc, line 336

Code

function _date_ical_tz($tz) {
  include_once drupal_get_path('module', 'date_api') . '/date.inc';
  include_once './' . drupal_get_path('module', 'date_api') . '/date_timezones.inc';
  foreach (date_get_timezones() as $delta => $zone) {
    if ($tz == $zone['timezone']) {
      return (object) $zone;
    }
  }
}