title: php output hours based on locale
body: <p>I am working on a project that requires me to list the 24 hours of the day in the locale format.</p>
  
  <p>Here is what I have:</p>
  
  <pre><code>$time_fmt = datefmt_create(ICL_LANGUAGE_CODE, IntlDateFormatter::LONG, IntlDateFormatter::LONG, '', IntlDateFormatter::GREGORIAN, 'H:i');
  echo datefmt_format($time_fmt, mktime(1, 0));
  </code></pre>
  
  <p>It seems this should make 01:00 or 1:00am depending on the locale. But, it is outputting '8:'.</p>
  
  <p>How can I use datefmt_create() and dtefmt_format() to list the 24 hours of the day in the locale format?</p>