title: How to get timezone from airport code (IATA/FAA)
body: <p>I am trying to make a PHP function that returns the UTC timezone for a given airport code (IATA/FAA).</p>
  
  <p>What the function should do is something like this:</p>
  
  <pre><code>echo getTimezoneFromAirportCode("CPH"); // +1
  echo getTimezoneFromAirportCode("CXI"); // +14
  </code></pre>
  
  <p>To make this function I need a list of all aiport codes and their timezones.</p>
  
  <p>By searching a bit I found this list: <a href="https://sourceforge.net/p/openflights/code/HEAD/tree/openflights/data/airports.dat?format=raw" rel="noreferrer">https://sourceforge.net/p/openflights/code/HEAD/tree/openflights/data/airports.dat?format=raw</a> (Source: <a href="http://openflights.org/data.html" rel="noreferrer">http://openflights.org/data.html</a>)</p>
  
  <p>After looking up a couple of airport codes in the list I found out that some of the data was incorrect. For instance it lists <code>CXI</code> to be in the <code>UTC -12</code> timezone - which according to <a href="http://www.timeanddate.com/worldclock/city.html?n=274" rel="noreferrer">this page</a> is incorrect.</p>
  
  <p>Does any of you know a public list that provides the data needed to make the <code>getTimezoneFromAirportCode</code> function?</p>