<?php if ($widget == 'single_text'): ?>
    <?php echo $view['form']->block($form, 'form_widget_simple'); ?>
<?php else: ?>
    <div <?php echo $view['form']->block($form, 'widget_container_attributes') ?>>
        <?php
            // There should be no spaces between the colons and the widgets, that's why
            // this block is written in a single PHP tag
            echo $view['form']->widget($form['hour'], array('attr' => array('size' => 1)));
            echo ':';
            echo $view['form']->widget($form['minute'], array('attr' => array('size' => 1)));

            if ($with_seconds) {
                echo ':';
                echo $view['form']->widget($form['second'], array('attr' => array('size' => 1)));
            }
        ?>
    </div>
<?php endif ?>

<?php if ($widget == 'single_text'): ?>
    <?php echo $view['form']->block($form, 'form_widget_simple'); ?>
<?php else: ?>
    <div <?php echo $view['form']->block($form, 'widget_container_attributes') ?>>
        <?php
            // There should be no spaces between the colons and the widgets, that's why
            // this block is written in a single PHP tag
            echo $view['form']->widget($form['hour'], array('attr' => array('size' => 1)));

            if ($with_minutes) {
                echo ':';
                echo $view['form']->widget($form['minute'], array('attr' => array('size' => 1)));
            }

            if ($with_seconds) {
                echo ':';
                echo $view['form']->widget($form['second'], array('attr' => array('size' => 1)));
            }
        ?>
    </div>
<?php endif ?>

Add options with_minutes to DateTimeType & TimeType
[Form] Add options with_minutes to DateTimeType & TimeType

