Skip to content

Commit 00fbf7a

Browse files
committed
Correct bug with meridian and 12 hours format.
1 parent 629ca4e commit 00fbf7a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/View/Helper/BootstrapFormHelper.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,8 @@ protected function _getDatetimeTemplate ($fields, $options) {
414414
$inputs = [] ;
415415
foreach ($fields as $field => $in) {
416416
if ($this->_extractOption($field, $options, $in)) {
417-
$inputs[$field] = '<div class="col-md-{{colsize}}">{{'.($field == 'timeFormat' ? 'meridian' : $field).'}}</div>';
417+
if ($field === 'timeFormat') $field = 'meridian' ; // Template uses "meridian" instead of timeFormat
418+
$inputs[$field] = '<div class="col-md-{{colsize}}">{{'.$field.'}}</div>';
418419
}
419420
}
420421
$tplt = $this->templates('dateWidget');

0 commit comments

Comments
 (0)