You are here

function event_timezone_map in Event 5

Same name and namespace in other branches
  1. 5.2 event.module \event_timezone_map()
1 call to event_timezone_map()
event_form_alter in ./event.module

File

./event_timezones.inc, line 246

Code

function event_timezone_map($offset) {
  static $map;
  if (!is_array($map)) {
    $map = array(
      '-43200' => '305',
      '-39600' => '304',
      '-36000' => '303',
      '-34200' => '486',
      '-32400' => '313',
      '-28800' => '312',
      '-25200' => '311',
      '-21600' => '310',
      '-18000' => '309',
      '-14400' => '308',
      '-12600' => '143',
      '-10800' => '307',
      '-7200' => '306',
      '-3600' => '302',
      '0' => '487',
      '3600' => '314',
      '7200' => '320',
      '10800' => '321',
      '12600' => '235',
      '14400' => '322',
      '18000' => '323',
      '19800' => '185',
      '20700' => '207',
      '21600' => '324',
      '23400' => '387',
      '25200' => '325',
      '28800' => '326',
      '32400' => '327',
      '34200' => '270',
      '36000' => '315',
      '37800' => '267',
      '39600' => '316',
      '41400' => '438',
      '43200' => '317',
      '45900' => '417',
      '46800' => '318',
      '50400' => '319',
    );
  }
  return $map[$offset];
}