title: Yii Kartik DateControl Time Formatter Only Displays 12:30 On Update
body: <p>I am using the Yii Kartik DateControl Widget to allow for the time selection to be displayed in one PHP format but saved in another. The primary issue I am having is that when I save save the time selection and go back (to edit the model) it will always display 12:30pm. </p>
  
  <p>For instance, I select "6:30pm" from the time picker.
  It correctly saves in the database "18:30:00". 
  On update the display should read: "6:30pm", but instead shows "12:30pm". 
  Whatever the saved time is, it always switches to "12:30pm" on update. And I know it switches because the widget time button is highlighted in green. </p>
  
  <p>The following is my module setup:</p>
  
  <pre><code>'modules' =&gt; [
      'datecontrol' =&gt;  [
          'class' =&gt; 'kartik\datecontrol\Module',
          'displaySettings' =&gt; [
              Module::FORMAT_DATE =&gt; 'mm/dd/yyyy',
              Module::FORMAT_TIME =&gt; 'HH:mm a',
              Module::FORMAT_DATETIME =&gt; 'mm/dd/yyyy HH:mm a', 
          ],
          'saveSettings' =&gt; [
              Module::FORMAT_DATE =&gt; 'php:Y-m-d', // saves as unix timestamp
              Module::FORMAT_TIME =&gt; 'php:H:i:s',
              Module::FORMAT_DATETIME =&gt; 'php:Y-m-d H:i:s',
          ],
          'displayTimezone' =&gt; 'America/New_York',
          'saveTimezone' =&gt; 'America/New_York',
          'autoWidget' =&gt; true,
          'ajaxConversion' =&gt; true,
          'autoWidgetSettings' =&gt; [
              Module::FORMAT_DATE =&gt; ['type'=&gt;2, 'pluginOptions'=&gt;['autoclose'=&gt;true]], // example
              Module::FORMAT_DATETIME =&gt; [], // setup if needed
              Module::FORMAT_TIME =&gt; [], // setup if needed
          ],
  </code></pre>
  
  <p>This is the setup in my view:</p>
  
  <pre><code>&lt;?= $form-&gt;field($event, 'start_time')-&gt;label(false)-&gt;widget(DateControl::classname(), [
                  'type' =&gt; DateControl::FORMAT_TIME,
          ]); ?&gt;
  </code></pre>
  
  <p>I either did something wrong here or there is a bug in the widget but I haven't figured it out. 
  Things I've tried:</p>
  
  <ol>
  <li>Changing the saveTimezone to 'UTC' </li>
  <li>Setting the timezones in the widget itself at the view level</li>
  <li>Setting AjaxConversion to false</li>
  <li>Setting autoWidget to false</li>
  </ol>
  
  <p>None of these really get me the desired effect as expected. </p>